由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - hash function division method
相关主题
数学硕士物理博士转行找sde 工作, 求建议Exposed上一道string permutation的题
CS intern面试经验这两道leetcode题有更好的答案吗?
bloomberg刚店面晚。 悔阿Given a string, find all its permutations without any repetition?
碰到不置可否的面试官怎么办?MS Onsite
看一道string permutation的题目吧问一个题
关于排列组合的题目的算法amazon onsite 面经
Non-recursive permutation问一个题目
一道amazon题一个容易记忆的permutation算法
相关话题的讨论汇总
话题: hash话题: string话题: permuting话题: division话题: radix
进入JobHunting版参与讨论
1 (共1页)
q****x
发帖数: 7404
1
anyone know the answer of the following?
CLRS v3:
As Exercise 11.3-3 asks you to show, choosing m = 2^p - 1 when k is a
character string interpreted in radix 2p may be a poor choice, because
permuting the characters of k does not change its hash value.
11.3-3
Consider a version of the division method in which h(k) = k mod m, where
m = 2^p - 1 and k is a character string interpreted in radix 2^p. Show
that if we can derive string x from string y by permuting its characters,
then x and y hash to the same value. Give an example of an application in
which this property would be undesirable in a hash function.
1 (共1页)
进入JobHunting版参与讨论
相关主题
一个容易记忆的permutation算法看一道string permutation的题目吧
抽空简单说一下昨天的Google Phone Interview关于排列组合的题目的算法
如何写内存速度最优化的string permutation?有重复字符Non-recursive permutation
谁能贴一下求nth permutation 和已知permutation 求rank的code一道amazon题
数学硕士物理博士转行找sde 工作, 求建议Exposed上一道string permutation的题
CS intern面试经验这两道leetcode题有更好的答案吗?
bloomberg刚店面晚。 悔阿Given a string, find all its permutations without any repetition?
碰到不置可否的面试官怎么办?MS Onsite
相关话题的讨论汇总
话题: hash话题: string话题: permuting话题: division话题: radix