
HASH
吕秀才
静下心来,每一步都踏踏实实。
展开
-
Hash
public class HashAlgorithms{/**//*** 加法hash* @param key 字符串* @param prime 一个质数* @return hash结果*/public static int additiveHa转载 2011-08-18 18:00:27 · 3493 阅读 · 0 评论 -
字符串__哈希算法
// RS Hash Function unsigned int RSHash( char * str) { unsigned int b = 378551 ; unsigned int a = 63689 ; unsigned int hash = 0 ;转载 2011-08-17 10:12:46 · 559 阅读 · 0 评论 -
多模式字符串匹配
//没经过大量测试,不知道是否有BUG #ifndef HASHLIST_H#define HASHLIST_Hstruct Node{ char *data; int Index; Node *next;};class HashList{public: HashList(); int Insert(char *str); int S原创 2011-11-04 13:53:43 · 468 阅读 · 0 评论