hash table
来源:互联网 发布:vb api浏览器 user32 编辑:程序博客网 时间:2024/06/11 09:18
- hash tables
- hash function
- division method
- multiplication method
- Universal hashing
hash tables
如图所示,使用一个hash function将原来的key映射到hash表中。碰撞发生在不同的key映射到了同一个位置。
hash function
division method
multiplication method
Universal hashing
选择一组hash函数,这个组合称为 universal 如果对于每个hash函数来说,它碰撞的概率小于
In universal hashing, at the beginning of execution we select the hash function at random from a carefully designed class of functions.
在universal hashing中,从一组精神设计的hash function中选择。
Theorem
假设从一组hash函数的universal collection随机挑选了一个hash函数
这个结果是不依赖于hash函数的选择的,也就是说,当碰撞的时候采取chaining的方法,那么当hash一个k到表中时,当它不在表中,它在的slot的 长度的平均值 是 n/m,如果k在表中是 1 + n/m(就是1 + 不在的平均长度)
it has now become impossible for an adversary to pick a sequence of operations that forces the worst-case running time. By cleverly randomizing the choice of hash function at run time, we guarantee that we can process every sequence of operations with a good average-case running time.
- Hash Table
- Hash Table
- Hash Table
- Hash Table
- HASH TABLE
- Hash Table
- Hash Table
- hash table
- Hash Table
- Hash Table
- hash table
- Hash Table
- hash table
- Hash Table
- Hash Table
- Hash Table
- Hash table
- Hash Table
- MapReduce的shuffle阶段
- 2017智慧树中国近代史新编答案单元测验答案
- H
- java 编程思想的学习笔记
- oracle应用
- hash table
- Android 强大的滚动控件 RecyclerView
- Json格式化输出
- Bean property 'xxx' is not writable or has an invalid setter method
- Hardwood Species UVA
- 深入浅出Redis任务队列
- 字符编码笔记
- jsday11补充二(弹来弹去的广告 关键是Interval计时和来回判断)
- C++实现的线程池