hash
追什么风筝
这个作者很懒,什么都没留下…
展开
-
哈希之线性探测法
数据结构实验之查找七:线性之哈希表Time Limit: 1000MS Memory Limit: 65536KBProblem Description 根据给定的一系列整数关键字和素数p,用除留余数法定义hash函数H(Key)=Key%p,将关键字映射到长度为p的哈希表中,用线性探测法解决冲突。重复关键字放在hash表中的同一位置。 Input 连续输入多组数据,每组输入数据第一行...转载 2018-12-07 17:25:00 · 454 阅读 · 0 评论 -
1078 Hashing (25 分)
1078 Hashing (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined ...原创 2018-12-07 17:32:14 · 177 阅读 · 0 评论 -
1145 Hashing - Average Search Time (25 分)
1145 Hashing - Average Search Time (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer key...原创 2018-12-07 17:45:44 · 94 阅读 · 0 评论