And e.szemer~di.storing a sparse table with o(1) worst case access time
暂无分享,去创建一个
We describe a data structure for representing a set of n items from a universe of m items, which uses space n+o(n) and accommodates membership queries in constant time. Both the data structure and the query algorithm are easy to implement.
[1] Gerhard Jaeschke. Reciprocal hashing: a method for generating minimal perfect hashing functions , 1981, CACM.
[2] Andrew Chi-Chih Yao,et al. Should Tables Be Sorted? , 1981, JACM.
[3] Renzo Sprugnoli,et al. Perfect hashing functions , 1977, Commun. ACM.
[4] Robert E. Tarjan,et al. Storing a sparse table , 1979, CACM.