Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
双重哈希能否在基于质数的开放地址哈希中填充哈希表中的所有条目?
微不足道,是的。如果哈希表有n桶,只需插入n元素。
n
必须设计双散列探测序列以使其命中每个桶(如果没有,那将是该方案的缺陷)。特别是,这意味着第二个散列函数决不能计算为 0 mod n,如果否则为 0,则可以通过将其强制为 1 来保证这一点。
一直在尝试这些代码,我想发送一封电子邮件,它将自动生成密码,然后随机密码将在我的数据库列中更新,即 encrypted_password。
我真的不知道我的代码有什么问题。我是这个 android 应