{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:26:39Z","timestamp":1787340399021,"version":"build-2736575974"},"reference-count":21,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"6","funder":[{"name":"Danish Council for Indpendent Research","award":["DFF-0602-02499B"],"award-info":[{"award-number":["DFF-0602-02499B"]}]},{"DOI":"10.13039\/100008398","name":"Villum Fonden","doi-asserted-by":"publisher","award":["16582"],"award-info":[{"award-number":["16582"]}],"id":[{"id":"10.13039\/100008398","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2018,1]]},"abstract":"<jats:p>A random sampling function ${\\it Sample}:U\\rightarrow\\{0,1\\}$ for a key universe $U$ is a distinguisher with probability $\\alpha$ if for any given assignment of values $v(x)$ to the keys $x\\in U$, including at least one nonzero $v(x)\\neq0$, the sampled sum $\\sum_{x\\in U}{\\it Sample}(x)v(x)$ is nonzero with probability at least $\\alpha$. Here the key values may come from any commutative monoid (addition is commutative and associative and zero is neutral). Such distinguishers were introduced by Vazirani [ Randomness, Adversaries, and Computation, Ph.D. thesis, University of California, Berkeley, CA, 1986], and Naor and Naor used them for their small-bias probability spaces [ SIAM J. Comput., 22 (1993), pp. 838--856]. Constant probability distinguishers are used for testing in contexts where the individual key values are not computed directly, yet where the sum is easily computed. A simple example is when we get a stream of key value pairs $(x_1,v_1),(x_2,v_2),\\ldots,(x_n,v_n)$ where the same key may appear many times. The accumulated value of key $x$ is $v(x)=\\sum_{i\\in \\{1,\\ldots,n \\}, x_i=x} v_i$, and we want to check if there is any nonzero $v(x)$ (a nonzero could indicate some accounting mistake). For space reasons, we may not be able to maintain $v(x)$ for every key $x$, but the sampled sum is easily maintained as the single value $\\sum_{i=1}^n{\\it Sample}(x_i)v_i$. Here we show that when dealing with $w$-bit integers, if $a$ is a uniform odd $w$-bit integer and $t$ is a uniform $w$-bit integer, then $\\textit{Sample}(x)=[ax \\mod 2^w\\leq t]$ is a distinguisher with probability 1\/8. Working with standard units, that is, $w=8, 16, 32, 64$, we exploit that $w$-bit multiplication works modulo $2^w$, discarding overflow automatically, and then the sampling decision is implemented by the C-code \\texttta*x&lt;=t. Previous such samplers were much less computer friendly; e.g., the distinguisher of Naor and Naor [ SIAM J. Comput., 22 (1993), pp. 838--856] was more complicated and involved a 7-independent hash function.<\/jats:p>","DOI":"10.1137\/16m1059461","type":"journal-article","created":{"date-parts":[[2018,12,18]],"date-time":"2018-12-18T12:12:52Z","timestamp":1545135172000},"page":"2510-2526","source":"Crossref","is-referenced-by-count":0,"title":["Sample(x)=(a*x&lt;=t) Is a Distinguisher with Probability 1\/8"],"prefix":"10.1137","volume":"47","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5237-1709","authenticated-orcid":true,"given":"Mikkel","family":"Thorup","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2018,12,18]]},"reference":[{"key":"atypb1","doi-asserted-by":"crossref","unstructured":"K. J. Ahn, S. Guha, and A. McGregor,\n                      Analyzing graph structure via linear measurements\n                      , in Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2012, pp. 459-467,https:\/\/doi.org\/10.1137\/1.9781611973099.40.","DOI":"10.1137\/1.9781611973099.40"},{"key":"atypb2","doi-asserted-by":"publisher","DOI":"10.1002\/rsa.3240030308"},{"key":"atypb3","doi-asserted-by":"publisher","DOI":"10.1002\/rsa.3240040109"},{"key":"atypb4","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1545"},{"key":"atypb5","doi-asserted-by":"publisher","DOI":"10.4086\/toc.2013.v009a005"},{"key":"atypb6","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(79)90044-8"},{"key":"atypb7","doi-asserted-by":"publisher","DOI":"10.1016\/0885-064X(89)90015-0"},{"key":"atypb8","doi-asserted-by":"crossref","unstructured":"M. Dietzfelbinger,\n                      Universal hashing and $k$-wise independent random variables via integer arithmetic without primes\n                      , in Proceedings of the 13th Symposium on Theoretical Aspects of Computer Science (STACS), 1996, pp. 569-580.","DOI":"10.1007\/3-540-60922-9_46"},{"key":"atypb9","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.1997.0873"},{"key":"atypb10","first-page":"839","author":"Freivalds R.","year":"1977","journal-title":"Amsterdam"},{"key":"atypb11","volume":"0","author":"Gueron S.","year":"2010","journal-title":"Rev. 2"},{"key":"atypb12","doi-asserted-by":"crossref","unstructured":"B. M. Kapron, V. King, and B. Mountjoy,\n                      Dynamic graph connectivity in polylogarithmic worst case time\n                      , in Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2013, pp. 1131-1142,https:\/\/doi.org\/10.1137\/1.9781611973105.81.","DOI":"10.1137\/1.9781611973105.81"},{"key":"atypb13","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(93)90224-W"},{"key":"atypb14","doi-asserted-by":"crossref","unstructured":"V. King, S. Kutten, and M. Thorup,\n                      Construction and impromptu repair of an MST in a distributed network with $o(m)$ communication\n                      , in Proceedings of the 2015 ACM Symposium on Principles of Distributed Computing, 2015, pp. 71-80.","DOI":"10.1145\/2767386.2767405"},{"key":"atypb15","doi-asserted-by":"publisher","DOI":"10.1137\/0222053"},{"key":"atypb16","doi-asserted-by":"publisher","DOI":"10.1145\/2220357.2220361"},{"key":"atypb17","doi-asserted-by":"crossref","unstructured":"M. Thorup,\n                      Simple tabulation, fast expanders, double tabulation, and high independence\n                      , in Proceedings of the 2013 IEEE 54th Annual Symposium on Foundations of Computer Science (FOCS), 2013, pp. 90-99.","DOI":"10.1109\/FOCS.2013.18"},{"key":"atypb18","doi-asserted-by":"publisher","DOI":"10.1137\/100800774"},{"key":"atypb19","unstructured":"U. Vazirani,\n                      Randomness, Adversaries, and Computation\n                      , Ph.D. thesis, University of California, Berkeley, CA, 1986."},{"key":"atypb20","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(81)90033-7"},{"key":"atypb21","unstructured":"A. L. Zobrist,\n                      A New Hashing Method with Application for Game Playing\n                      , Tech. Report 88, Computer Sciences Department, University of Wisconsin, Madison, WI, 1970."}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/16M1059461","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:33:18Z","timestamp":1787337198000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/16M1059461"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018,1]]},"references-count":21,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2018,1]]}},"alternative-id":["10.1137\/16M1059461"],"URL":"https:\/\/doi.org\/10.1137\/16m1059461","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,1]]}}}