简体   繁体   English

用于数据存储的线性哈希

[英]Linear Hashing for Data Storage

Assume I am using linear hashing , assume 3 number per block and no overflow buffer. 假设我正在使用线性哈希 ,假设每个块3个数字且没有溢出缓冲区。 I want to insert 100 zero. 我想插入100个零。 It seems that no matter how many splits I do, the number cannot be inserted. 看来,无论我进行多少分割,都无法插入该数字。 How linear hashing handle that? 线性哈希如何处理呢? I know the data is extremely shew in that case but I just want to know how linear hashing handle it. 我知道在那种情况下数据非常棒,但是我只想知道线性哈希如何处理它。 Or that is the limitation of linear hashing. 或那是线性哈希的局限性。

That is correct - the data cannot be accommodated. 没错-无法容纳数据。 If there are no overflow blocks, and more hash collisions than can fit in the initial block, the data cannot be stored. 如果没有溢出块,并且散列冲突超出了初始块的容纳范围,则无法存储数据。 Presumably the implementation would signal failure in some way. 大概该实现将以某种方式表示故障。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM