哈希算法(Hash Algorithm)初探
摘要:不约而同的,几乎所有的流行的hash map都采用了DJB hash function,俗称“Times33”算法。Perl、Berkeley DB 、Apache、MFC、STL 等等。times33的算法也很简单,就是不断的乘33。nHash = nHash*33 + *key++;我没找到什...
阅读全文
posted @ 2007-03-12 11:39
posted @ 2007-03-12 11:39
posted @ 2007-03-08 00:54
posted @ 2007-03-07 17:19
posted @ 2007-03-07 16:55