HDU 11488 Hyper Prefix Sets (字符串-Trie树)
题目大意:
假设a表示公共前缀的长度,b表示含有这个前缀的字符串个数,问你a*b的最大值。
解题思路:
建立一棵Trie树,边建边查,直接更新 长度乘以个数的最大值...
                            
                            
                                分类:
其他好文   时间:
2014-06-22 21:12:34   
                                阅读次数:
307
                             
                    
                        
                            
                            
                                http://blog.csdn.net/bloggongchang/article/details/7272403一、MongoDB Replica Sets(副本集)简单的说就是有自动故障恢复功能的主从集群,主从集群和副本集的最为明显的区别是副本集没有固定的"主节点":整个集群会选举出来一个"主...
                            
                            
                                分类:
其他好文   时间:
2014-06-18 16:11:38   
                                阅读次数:
231
                             
                    
                        
                            
                            
                                http://www.lanceyan.com/tech/mongodb/mongodb_repset1.html在上一篇文章《搭建高可用MongoDB集群(一)——配置MongoDB》提到了几个问题还没有解决。主节点挂了能否自动切换连接?目前需要手工切换。主节点的读写压力过大如何解决?从节点每个上...
                            
                            
                                分类:
数据库   时间:
2014-06-17 13:34:35   
                                阅读次数:
467
                             
                    
                        
                            
                            
                                http://www.lanceyan.com/tech/mongodb_repset2.html在上一篇文章《搭建高可用mongodb集群(二)—— 副本集》介绍了副本集的配置,这篇文章深入研究一下副本集的内部机制。还是带着副本集的问题来看吧!副本集故障转移,主节点是如何选举的?能否手动干涉下架某...
                            
                            
                                分类:
数据库   时间:
2014-06-17 13:11:49   
                                阅读次数:
341
                             
                    
                        
                            
                            
                                http://www.lanceyan.com/tech/arch/mongodb_shard1.html按照上一节中《搭建高可用mongodb集群(三)—— 深入副本集》搭建后还有两个问题没有解决:从节点每个上面的数据都是对数据库全量拷贝,从节点压力会不会过大?数据压力大到机器支撑不了的时候能否做...
                            
                            
                                分类:
数据库   时间:
2014-06-17 13:07:58   
                                阅读次数:
549
                             
                    
                        
                            
                            
                                Movies Recommendation:MovieLens- Movie 
Recommendation Data Setshttp://www.grouplens.org/node/73Yahoo!- Movie, Music, 
and Images Ratings Data Setshttp:...
                            
                            
                                分类:
其他好文   时间:
2014-06-12 14:30:45   
                                阅读次数:
308
                             
                    
                        
                            
                            
                                --master log 与relay 
log的关系-------------------------------2014/06/09Just to clarify, there are three 
sets of file/position coordinates in SHOW SLAVE ST...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 08:31:57   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                The oldest solution that people still use for 
this problem is select(). The select() call takes three sets of fds (implemented 
as bit arrays): one for...
                            
                            
                                分类:
编程语言   时间:
2014-06-10 08:26:42   
                                阅读次数:
325