{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:43:49Z","timestamp":1787341429123,"version":"build-2736575974"},"reference-count":63,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CCF-1815840"],"award-info":[{"award-number":["CCF-1815840"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2021,1]]},"abstract":"<jats:p>In this paper, we resolve the one-pass space complexity of perfect $L_p$ sampling for $p \\in (0,2)$ in a stream. Given a stream of updates (insertions and deletions) to the coordinates of an underlying vector $f \\in \\mathbb{R}^n$, a perfect $L_p$ sampler must output an index $i$ with probability $|f_i|^p\/\\|f\\|_p^p$ and is allowed to fail with some probability $\\delta$. So far, for $p &gt; 0$ no algorithm has been shown to solve the problem exactly using ${poly}( \\log n)$-bits of space. In 2010, Monemizadeh and Woodruff introduced an approximate $L_p$ sampler which, given an approximation parameter $\\nu$, outputs $i$ with probability $(1 \\pm \\nu)|f_i|^p \/\\|f\\|_p^p$, using space polynomial in $\\nu^{-1}$ and $\\log(n)$. The space complexity was later reduced by Jowhari, Sa\u011flam, and Tardos to roughly $O(\\nu^{-p} \\log^2 n \\log \\delta^{-1})$ for $p \\in (0,2)$, which matches the general $p\\geq 0$ lower bound of $\\Omega(\\log^2 n \\log \\delta^{-1})$ in terms of $n$ and $\\delta$, but is loose in terms of $\\nu$. Given these nearly tight bounds, it is perhaps surprising that no lower bound exists in terms of $\\nu$---not even a bound of $\\Omega(\\nu^{-1})$ is known. In this paper, we explain this phenomenon by demonstrating the existence of an $O(\\log^2 n \\log \\delta^{-1})$-bit perfect $L_p$ sampler for $p \\in (0,2)$. This shows that $\\nu$ need not factor into the space of an $L_p$ sampler, which closes the complexity of the problem for this range of $p$. For $p=2$, our bound is $O(\\log^3 n \\log \\delta^{-1})$-bits, which matches the prior best known upper bound of $O(\\nu^{-2}\\log^3n \\log \\delta^{-1})$, but has no dependence on $\\nu$. Note that there is still a $\\log n$ gap between our upper bound and the lower bound for $p=2$, the ution of which we leave as an open problem. For $p&lt;2$, our bound holds in the random oracle model, matching the lower bounds in that model. However, we show that our algorithm can be derandomized with only a $O((\\log \\log n)^2)$ blow-up in the space (and no blow-up for $p=2$). Our derandomization technique is quite general, and can be used to derandomize a large class of linear sketches, including the more accurate count-sketch variant of Minton and Price [ Proceedings of the 25th Annual ACM-SIAM Symposium on Discrete Algorithms, SIAM, Philadelphia, 2014, pp. 669--686], resolving an open question in that paper. Finally, we show that a $(1\\pm\\epsilon)$ relative error estimate of the frequency $f_i$ of the sampled index $i$ can be obtained using an additional $O(\\epsilon^{-p} \\log n)$-bits of space for $p &lt; 2$, and $O( \\epsilon^{-2} \\log^2 n)$ bits for $p=2$, which was possible before only by running the prior algorithms with $\\nu = \\epsilon$.<\/jats:p>","DOI":"10.1137\/18m1229912","type":"journal-article","created":{"date-parts":[[2021,3,30]],"date-time":"2021-03-30T14:03:09Z","timestamp":1617112989000},"page":"382-439","source":"Crossref","is-referenced-by-count":6,"title":["Perfect $L_p$ Sampling in a Data Stream"],"prefix":"10.1137","volume":"50","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0332-6332","authenticated-orcid":true,"given":"Rajesh","family":"Jayaram","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"David","family":"Woodruff","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2021,3,30]]},"reference":[{"key":"atypb1","doi-asserted-by":"crossref","unstructured":"A. Andoni, R. Krauthgamer, and K. Onak,\n                      Streaming Algorithms from Precision Sampling\n                      , preprint, arXiv:1011.1263, 2010.","DOI":"10.1109\/FOCS.2011.82"},{"key":"atypb2","first-page":"1","author":"Babcock B.","year":"2002","journal-title":"ACM"},{"key":"atypb3","first-page":"740","author":"Braverman V.","year":"2016","journal-title":"ACM"},{"key":"atypb4","first-page":"633","author":"Babcock B.","year":"2002","journal-title":"Philadelphia"},{"key":"atypb5","first-page":"247","author":"Bringmann K.","year":"2014","journal-title":"New York"},{"key":"atypb6","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2011.04.004"},{"key":"atypb7","first-page":"819","volume":"4","author":"Cohen E.","year":"2011","journal-title":"PVLDB"},{"key":"atypb8","doi-asserted-by":"publisher","DOI":"10.1145\/2318857.2254798"},{"key":"atypb9","first-page":"693","author":"Charikar M.","year":"2002","journal-title":"Springer"},{"key":"atypb10","first-page":"1255","author":"Cohen E.","year":"2009","journal-title":"Philadelphia"},{"key":"atypb11","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2014.04.009"},{"key":"atypb12","first-page":"25","author":"Cormode G.","year":"2005","journal-title":"VLDB Endowment"},{"key":"atypb13","first-page":"77","author":"Cormode G.","year":"2010","journal-title":"ACM"},{"key":"atypb14","doi-asserted-by":"publisher","DOI":"10.1145\/2160158.2160163"},{"key":"atypb15","first-page":"159","author":"Cohen E.","year":"2015","journal-title":"New York"},{"key":"atypb16","unstructured":"T. M. Cover and J. A. Thomas,\n                      Elements of Information Theory\n                      , John Wiley & Sons, New York, 2012."},{"key":"atypb17","first-page":"472","author":"Duffield N.","year":"2004","journal-title":"Statist. Sci."},{"key":"atypb18","first-page":"292","author":"Deshpande A.","year":"2006","journal-title":"New York"},{"key":"atypb19","doi-asserted-by":"publisher","DOI":"10.1145\/859716.859719"},{"key":"atypb20","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-015-0077-8"},{"key":"atypb21","first-page":"927","author":"Feigenbaum J.","year":"2001","journal-title":"New York"},{"key":"atypb22","doi-asserted-by":"publisher","DOI":"10.1142\/S0218195908002520"},{"key":"atypb23","doi-asserted-by":"publisher","DOI":"10.1145\/1039488.1039494"},{"key":"atypb24","doi-asserted-by":"publisher","DOI":"10.1137\/16M1062132"},{"key":"atypb25","unstructured":"A. C. Gilbert, Y. Kotidis, S. Muthukrishnan, and M. Strauss,\n                      Quicksand: Quick Summary and Analysis of Network Data\n                      , Technical report, 2001."},{"key":"atypb26","first-page":"454","author":"Gilbert A. C.","year":"2002","journal-title":"New York"},{"key":"atypb27","first-page":"595","author":"Gemulla R.","year":"2006","journal-title":"Korea"},{"key":"atypb28","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-007-0065-y"},{"key":"atypb29","first-page":"331","author":"Gibbons P. B.","year":"1998","journal-title":"WA"},{"key":"atypb30","first-page":"27","author":"Gibbons P. B.","year":"2002","journal-title":"NCM Trans Database Syst."},{"key":"atypb31","doi-asserted-by":"publisher","DOI":"10.4064\/sm-70-3-231-283"},{"key":"atypb32","first-page":"13","author":"Haas P. J.","year":"2016","journal-title":"New York"},{"key":"atypb33","first-page":"134","author":"Huang L.","year":"2007","journal-title":"IEEE"},{"key":"atypb34","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1996.0041"},{"key":"atypb35","doi-asserted-by":"publisher","DOI":"10.1145\/141484.130335"},{"key":"atypb36","doi-asserted-by":"publisher","DOI":"10.1145\/1147954.1147955"},{"key":"atypb37","first-page":"49","author":"Jowhari H.","year":"2011","journal-title":"New York"},{"key":"atypb38","doi-asserted-by":"publisher","DOI":"10.1145\/2483699.2483706"},{"key":"atypb39","doi-asserted-by":"crossref","unstructured":"M. Kapralov, J. Nelson, J. Pachocki, Z. Wang, D. P. Woodruff, and M. Yahyazadeh,\n                      Optimal lower bounds for universal relation, and for samplers and finding duplicates in streams\n                      , 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), Berkeley, CA, 2017, pp. 475-486.","DOI":"10.1109\/FOCS.2017.50"},{"key":"atypb40","unstructured":"D. E. Knuth,\n                      The Art of Computer Programming, Volume II: Seminumerical Algorithms\n                      , 3rd ed., Addison-Wesley, Reading, MA, 1998."},{"key":"atypb41","first-page":"1161","author":"Kane D. M.","year":"2010","journal-title":"Philadelphia"},{"key":"atypb42","unstructured":"S. Kopparty,\n                      Lecture $7$: $\\eps$-biased and Almost $k$-wise Independent Spaces\n                      ,http:\/\/sites.math.rutgers.edu\/~sk1233\/courses\/topics-S13\/lec7.pdf, 2013."},{"key":"atypb43","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1995.1050"},{"key":"atypb44","first-page":"61","author":"Larsen K. G.","year":"2016","journal-title":"Proceedings of the IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), IEEE"},{"key":"atypb45","doi-asserted-by":"crossref","unstructured":"R. J. Lipton, J. F. Naughton, and D. A. Schneider,\n                      Practical selectivity estimation through adaptive sampling\n                      , in Proceedings of the ACM SIGMOD International Conference on Management of Data, 1990.","DOI":"10.1145\/93597.93611"},{"key":"atypb46","first-page":"174","author":"Li Y.","year":"2014","journal-title":"New York"},{"key":"atypb47","doi-asserted-by":"publisher","DOI":"10.1561\/0400000002"},{"key":"atypb48","first-page":"148","author":"C","year":"1989","journal-title":"Cambridge"},{"key":"atypb49","first-page":"165","author":"Mai J.","year":"2006","journal-title":"New York"},{"key":"atypb50","first-page":"1699","volume":"5","author":"Manku G. S.","year":"2012","journal-title":"PVLDB"},{"key":"atypb51","first-page":"669","author":"Minton G. T.","year":"2014","journal-title":"Philadelphia"},{"key":"atypb52","first-page":"1143","author":"Monemizadeh M.","year":"2010","journal-title":"Philadelphia"},{"key":"atypb53","first-page":"173","author":"Nagaraja H. N.","year":"2006","journal-title":"New York"},{"key":"atypb54","doi-asserted-by":"publisher","DOI":"10.1007\/BF01305237"},{"key":"atypb55","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1996.0004"},{"key":"atypb56","unstructured":"F. Olken,\n                      Random Sampling from Databases\n                      , Ph.D. thesis, University of California, Berkeley, 1993."},{"key":"atypb57","unstructured":"E. Price,\n                      private communication\n                      , 2018."},{"key":"atypb58","first-page":"239","author":"Thottan M.","year":"2010","journal-title":"New York"},{"key":"atypb59","first-page":"283","author":"Tirthapura S.","year":"2011","journal-title":"New York"},{"key":"atypb60","doi-asserted-by":"publisher","DOI":"10.1145\/3147.3165"},{"key":"atypb61","first-page":"735","volume":"2011","author":"Woodruff D. P.","year":"2011","journal-title":"STOC"},{"key":"atypb62","unstructured":"D. P. Woodruff and Q. Zhang,\n                      Subspace Embeddings and LP-Regression using Exponential Random Variables\n                      , CoRR, abs\/1305.5580, 2013."},{"key":"atypb63","doi-asserted-by":"crossref","unstructured":"D. P. Woodruff and P. Zhong,\n                      Distributed low rank approximation of implicit functions of a matrix\n                      , in Proceedings of the 32nd IEEE International Conference on Data Engineering (ICDE), 2016, pp. 847-858.","DOI":"10.1109\/ICDE.2016.7498295"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/18M1229912","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:19:23Z","timestamp":1787339963000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/18M1229912"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1]]},"references-count":63,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2021,1]]}},"alternative-id":["10.1137\/18M1229912"],"URL":"https:\/\/doi.org\/10.1137\/18m1229912","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1]]}}}