会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
fancysimon
博客园
首页
新随笔
联系
管理
订阅
2010年7月27日
各种Hash函数
摘要: 各种Hash函数C语言源程序:// RS Hash Functionunsigned int RSHash(char *str){unsigned int b = 378551;unsigned int a = 63689;unsigned int hash = 0;while (*str){ hash = hash * a + (*str++); a *= b;}return (hash &am...
阅读全文
posted @ 2010-07-27 10:12 Fancy
阅读(491)
评论(0)
推荐(0)
编辑
公告