{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T13:49:43Z","timestamp":1789134583340,"version":"build-2803163510"},"reference-count":33,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2012,1]]},"abstract":"<jats:p>In the framework of Wegman and Carter, a k-independent hash function maps any k keys independently. It is known that 5-independent hashing provides good expected performance in applications such as linear probing and second moment estimation for data streams. The classic 5-independent hash function evaluates a degree 4 polynomial over a prime field containing the key domain $[n]=\\{0,\\ldots,n-1\\}$. Here we present an efficient 5-independent hash function that uses no multiplications. Instead, for any parameter c, we make $2c-1$ lookups in tables of size $O(n^{1\/c})$. In experiments on different computers, our scheme gained factors of 1.8 to 10 in speed over the polynomial method. We also conducted experiments on the performance of hash functions inside the above applications. In particular, we give realistic examples of inputs that make the most popular 2-independent hash function perform quite poorly. This illustrates the advantage of using schemes with provably good expected performance for all inputs.<\/jats:p>","DOI":"10.1137\/100800774","type":"journal-article","created":{"date-parts":[[2012,4,17]],"date-time":"2012-04-17T18:24:15Z","timestamp":1334687055000},"page":"293-331","source":"Crossref","is-referenced-by-count":42,"title":["Tabulation-Based 5-Independent Hashing with Applications to Linear Probing and Second Moment Estimation"],"prefix":"10.1137","volume":"41","author":[{"given":"Mikkel","family":"Thorup","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yin","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2012,4,17]]},"reference":[{"key":"R1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1545"},{"key":"R2","doi-asserted-by":"crossref","unstructured":"B. Babcock, S. Babu, M. Datar, R. Motwani, and J. Widom,\n                      Models and issues in data stream systems\n                      , in Proceedings of the 21st ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 2002, pp. 1\u201316.","DOI":"10.1145\/543613.543615"},{"key":"R3","unstructured":"J. R. Black, C. U. Martel, and H. Qi,\n                      Graph and hashing algorithms for modern architectures: Design and performance\n                      , in Proceedings of the 2nd International Workshop on Algorithm Engineering, MPI Saarbr\u00fccken, 1998, pp. 37\u201348."},{"key":"R4","unstructured":"J. Bloemer, M. Kalfane, M. Karpinski, R. Karp, M. Luby, and D. Zuckerman,\n                      An XOR-based Erasure-resilient Coding Scheme\n                      , Technical Report TR-95-048, ICSI, Berkeley, CA, 1995; available online at http:\/\/www.icsi.berkeley.edu\/$\\!_{^{\\sim}}\\!$luby\/PAPERS\/cauchypap.ps."},{"key":"R5","unstructured":"A. Z. Broder and A. R. Karlin,\n                      Multilevel adaptive hashing\n                      , in Proceedings of the First Annual ACM-SIAM Symposium on Discrete Algorithms, San Francisco, 1990, pp. 43\u201353."},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(79)90044-8"},{"key":"R7","doi-asserted-by":"crossref","unstructured":"M. Charikar, K. Chen, and M. Farach-Colton,\n                      Finding frequent items in data streams\n                      , in Proceedings of the 29th ICALP, Lecture Notes in Comput. Sci. 2380, Springer, New York, 2002, pp. 693\u2013703.","DOI":"10.1007\/3-540-45465-9_59"},{"key":"R8","doi-asserted-by":"crossref","unstructured":"C. D. Cranor, T. Johnson, O. Spatscheck, and V. Shkapenyuk,\n                      Gigascope: A stream database for network applications\n                      , in Proceedings of the 22nd ACM SIGMOD Conference, 2003, pp. 647\u2013651.","DOI":"10.1145\/872757.872838"},{"key":"R9","doi-asserted-by":"crossref","unstructured":"M. Dietzfelbinger,\n                      \n                        Universal hashing and\n                        k\n                        -wise independent random variables via integer arithmetic without primes\n                      \n                      , in Proceedings of the 13th STACS, Lecture Notes in Comput. Sci. 1046, Springer, New York, 1996, pp. 569\u2013580.","DOI":"10.1007\/3-540-60922-9_46"},{"key":"R10","doi-asserted-by":"crossref","unstructured":"M. Dietzfelbinger, J. Gil, Y. Matias, and N. Pippenger,\n                      Polynomial hash functions are reliable\n                      , in Proceedings of the 19th ICALP, Lecture Notes in Comput. Sci. 623, Springer, New York, 1992, pp. 235\u2013246.","DOI":"10.1007\/3-540-55719-9_77"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.1997.0873"},{"key":"R12","doi-asserted-by":"crossref","unstructured":"M. Dietzfelbinger and P. Woelfel,\n                      Almost random graphs with simple hash functions\n                      , in Proceedings of the 35th Annual ACM Symposium on Theory of Computing, 2003, pp. 629\u2013638.","DOI":"10.1145\/780542.780634"},{"key":"R13","unstructured":"G. L. Heileman and W. Luo,\n                      How caching affects hashing\n                      , in Proceedings of the 7th Workshop on Algorithm Engineering and Experiments, SIAM, Philadelphia, 2005, pp. 141\u2013154."},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1145\/366622.366644"},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1145\/174130.174132"},{"key":"R16","unstructured":"D. E. Knuth,\n                      Notes on \u201cOpen\" Addressing\n                      , unpublished memorandum, 1963; available online at http:\/\/citeseer.ist.psu.edu\/knuth63notes.html."},{"key":"R17","unstructured":"D. E. Knuth,\n                      The Art of Computer Programming, Volume\n                      3:\n                      Sorting and Searching\n                      , Addison\u2013Wesley, Reading, MA, 1973."},{"key":"R18","doi-asserted-by":"crossref","unstructured":"B. Krishnamurthy, S. Sen, Y. Zhang, and Y. Chen,\n                      Sketch-based change detection: Methods, evaluation, and applications\n                      , in Proceedings of the ACM Internet Measurement Conference (IMC-03), 2003, pp. 234\u2013247.","DOI":"10.1145\/948205.948236"},{"key":"R19","unstructured":"M. Mitzenmacher and S. P. Vadhan,\n                      Why simple hash functions work: Exploiting the entropy in a data stream\n                      , in Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms, San Francisco, 2008, pp. 746\u2013755."},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1561\/0400000002"},{"key":"R21","doi-asserted-by":"crossref","unstructured":"A. Pagh, R. Pagh, and M. Ruzic,\n                      Linear probing with constant independence\n                      , in Proceedings of the 39th Annual ACM Symposium on Theory of Computing, 2007, pp. 318\u2013327.","DOI":"10.1145\/1250790.1250839"},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1137\/070702278"},{"key":"R23","doi-asserted-by":"crossref","unstructured":"M. Patrascu and M. Thorup,\n                      \n                        On the\n                        k\n                        -independence required by linear probing and minwise independence\n                      \n                      , in Proceedings of the 37th International Colloquium on Automata, Languages, and Programming, 2010, pp. 715\u2013726.","DOI":"10.1007\/978-3-642-14165-2_60"},{"key":"R24","doi-asserted-by":"crossref","unstructured":"M. Pa\u02c7tra\u015fcu and M. Thorup,\n                      The power of simple tabulation hashing\n                      , in Proceedings of the 43rd Annual ACM Symposium on Theory of Computing, ACM, New York, 2011, pp. 1\u201310; J. ACM, to appear.","DOI":"10.1145\/1993636.1993638"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1145\/263876.263881"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1007\/BF02242355"},{"key":"R27","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539701386216"},{"key":"R28","unstructured":"M. Thorup,\n                      Even strongly universal hashing is pretty fast\n                      , in Proceedings of the Eleventh Annual ACM-SIAM Symposium on Discrete Algorithms, San Francisco, 2000, pp. 496\u2013497."},{"key":"R29","doi-asserted-by":"crossref","unstructured":"M. Thorup,\n                      String hashing for linear probing\n                      , in Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, New York, 2009, pp. 655\u2013664.","DOI":"10.1137\/1.9781611973068.72"},{"key":"R30","unstructured":"M. Thorup and Y. Zhang,\n                      Tabulation based 4-universal hashing with applications to second moment estimation\n                      , in Proceedings of the Fifteenth Annual ACM-SIAM Symposium on Discrete Algorithms, New Orleans, 2004, pp. 608\u2013617."},{"key":"R31","doi-asserted-by":"crossref","unstructured":"M. Thorup and Y. Zhang,\n                      Tabulation based 5-universal hashing and linear probing\n                      , in Proceedings of the Twelfth Workshop on Algorithm Engineering and Experiments (ALENEX10), SIAM, Philadelphia, 2010, pp. 62\u201376.","DOI":"10.1137\/1.9781611972900.7"},{"key":"R32","unstructured":"M. Thorup and Y. Zhang,\n                      Source code for tabulation-based hashing\n                      , 2011; available online at http:\/\/www.cs.utexas.edu\/$\\!_{^{\\sim}}\\!$yzhang\/software\/hash.tar.gz."},{"key":"R33","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(81)90033-7"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/100800774","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:28:59Z","timestamp":1787336939000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/100800774"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,1]]},"references-count":33,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2012,1]]}},"alternative-id":["10.1137\/100800774"],"URL":"https:\/\/doi.org\/10.1137\/100800774","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,1]]}}}