
ACM 哈希
BYR_jiandong
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ 3349 哈希表
考察Hash算法。 两种方式:1.链地址法。 2.开放原创 2014-11-19 15:27:42 · 656 阅读 · 0 评论 -
POJ 1840
#include using namespace std; //**************常量定义*********************// const __int64 MAX=18750000; char Hash[2*MAX+1]; void SetUpHash(int coe[6]) { int x1,x2; __int64 key; for(x1=-50;x1<=50;x1+原创 2014-11-19 19:18:07 · 546 阅读 · 0 评论 -
POJ 2503 Hash
#include using namespace std; //**************常量定义****************// const int M = 149993; const int MAX=100000; //**************算法变量***************// int HashIndex[M];//存储hash值对应的元素下标 int len; st原创 2014-11-20 20:36:00 · 552 阅读 · 0 评论