{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T12:34:08Z","timestamp":1790685248585,"version":"4.1.0"},"reference-count":42,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2009,1]]},"abstract":"<jats:p>We explore problems related to computing graph distances in the data-stream model. The goal is to design algorithms that can process the edges of a graph in an arbitrary order given only a limited amount of working memory. We are motivated by both the practical challenge of processing massive graphs such as the web graph and the desire for a better theoretical understanding of the data-stream model. In particular, we are interested in the trade-offs between model parameters such as per-data-item processing time, total space, and the number of passes that may be taken over the stream. These trade-offs are more apparent when considering graph problems than they were in previous streaming work that solved problems of a statistical nature. Our results include the following: (1) Spanner construction: There exists a single-pass, $\\tilde{O}(tn^{1+1\/t})$-space, $\\tilde{O}(t^2n^{1\/t})$-time-per-edge algorithm that constructs a $(2t+1)$-spanner. For $t=\\Omega(\\log n\/{\\log\\log n})$, the algorithm satisfies the semistreaming space restriction of $O(n\\operatorname{polylog}n)$ and has per-edge processing time $O(\\operatorname{polylog}n)$. This resolves an open question from [J. Feigenbaum et al., Theoret. Comput. Sci., 348 (2005), pp. 207\u2013216]. (2) Breadth-first-search (BFS) trees: For any even constant k, we show that any algorithm that computes the first k layers of a BFS tree from a prescribed node with probability at least $2\/3$ requires either greater than $k\/2$ passes or $\\tilde{\\Omega}(n^{1+1\/k})$ space. Since constructing BFS trees is an important subroutine in many traditional graph algorithms, this demonstrates the need for new algorithmic techniques when processing graphs in the data-stream model. (3) Graph-distance lower bounds: Any t-approximation of the distance between two nodes requires $\\Omega(n^{1+1\/t})$ space. We also prove lower bounds for determining the length of the shortest cycle and other graph properties. (4) Techniques for decreasing per-edge processing: We discuss two general techniques for speeding up the per-edge computation time of streaming algorithms while increasing the space by only a small factor.<\/jats:p>","DOI":"10.1137\/070683155","type":"journal-article","created":{"date-parts":[[2008,12,22]],"date-time":"2008-12-22T09:32:24Z","timestamp":1229938344000},"page":"1709-1727","source":"Crossref","is-referenced-by-count":75,"title":["Graph Distances in the Data-Stream Model"],"prefix":"10.1137","volume":"38","author":[{"given":"Joan","family":"Feigenbaum","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sampath","family":"Kannan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andrew","family":"McGregor","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Siddharth","family":"Suri","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jian","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2008,12,19]]},"reference":[{"key":"R1","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-001-0088-5"},{"key":"R2","doi-asserted-by":"crossref","unstructured":"G. Aggarwal, M. Datar, S. Rajagopalan, and M. Ruhl,\n                      On the streaming model augmented with a sorting primitive\n                      , in Proceedings of the IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, Washington, DC, 2004, pp. 540\u2013549.","DOI":"10.1109\/FOCS.2004.48"},{"key":"R3","doi-asserted-by":"publisher","DOI":"10.1038\/43601"},{"key":"R4","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1545"},{"key":"R5","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539794271898"},{"key":"R6","unstructured":"Z. Bar-Yossef, R. Kumar, and D. Sivakumar,\n                      Reductions in streaming algorithms, with an application to counting triangles in graphs\n                      , in Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2002, pp. 623\u2013632."},{"key":"R7","doi-asserted-by":"crossref","unstructured":"S. Baswana and S. Sen,\n                      A simple linear time algorithm for computing a $(2k-1)$-spanner of ${O}(n^{1+1\/k})$ size in weighted graphs\n                      , in Proceedings of the International Colloquium on Automata, Languages and Programming, Eindhoven, The Netherlands, 2003, pp. 384\u2013396.","DOI":"10.1007\/3-540-45061-0_32"},{"key":"R8","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2007.11.001"},{"key":"R9","unstructured":"B. Bollob\u00e1s,\n                      Random Graphs\n                      , Academic Press, London, 1985."},{"key":"R10","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(02)00569-8"},{"key":"R11","doi-asserted-by":"crossref","unstructured":"L. S. Buriol, G. Frahling, S. Leonardi, A. Marchetti-Spaccamela, and C. Sohler,\n                      Counting triangles in data streams\n                      , in Proceedings of the ACM Symposium on Principles of Database Systems, ACM, New York, 2006, pp. 253\u2013262.","DOI":"10.1145\/1142351.1142388"},{"key":"R12","unstructured":"A. Chakrabarti, G. Cormode, and A. McGregor,\n                      A near-optimal algorithm for computing the entropy of a stream\n                      , in Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2007, pp. 328\u2013335."},{"key":"R13","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539794261295"},{"key":"R14","unstructured":"T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein,\n                      Introduction to Algorithms\n                      , MIT Press, Cambridge, MA, McGraw-Hill, New York, 2001."},{"key":"R15","doi-asserted-by":"crossref","unstructured":"G. Cormode and S. Muthukrishnan,\n                      Space efficient mining of multigraph streams\n                      , in Proceedings of the ACM Symposium on Principles of Database Systems, ACM, New York, 2005, pp. 271\u2013282.","DOI":"10.1145\/1065167.1065201"},{"key":"R16","doi-asserted-by":"crossref","unstructured":"C. Demetrescu, I. Finocchi, and A. Ribichini,\n                      Trading off space for passes in graph streaming problems\n                      , in Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2006, pp. 714\u2013723.","DOI":"10.1145\/1109557.1109635"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1145\/1103963.1103968"},{"key":"R18","doi-asserted-by":"crossref","unstructured":"M. Elkin,\n                      Streaming and fully dynamic centralized algorithms for constructing and maintaining sparse spanners\n                      , in Proceedings of the International Colloquium on Automata, Languages and Programming, Wroclaw, Poland, 2007, pp. 716\u2013727.","DOI":"10.1007\/978-3-540-73420-8_62"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1007\/s00446-005-0147-2"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1145\/265910.265914"},{"key":"R21","unstructured":"J. Feigenbaum, S. Kannan, A. McGregor, S. Suri, and J. Zhang,\n                      Graph distances in the streaming model: The value of space\n                      , in Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2005, pp. 745\u2013754."},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2005.09.013"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539799361701"},{"key":"R24","doi-asserted-by":"crossref","unstructured":"A. C. Gilbert, S. Guha, P. Indyk, Y. Kotidis, S. Muthukrishnan, and M. Strauss,\n                      Fast, small-space algorithms for approximate histogram maintenance\n                      , in Proceedings of the ACM Symposium on Theory of Computing, ACM, New York, 2002, pp. 389\u2013398.","DOI":"10.1145\/509907.509966"},{"key":"R25","doi-asserted-by":"crossref","unstructured":"M. Greenwald and S. Khanna,\n                      Efficient online computation of quantile summaries\n                      , in Proceedings of the ACM International Conference on Management of Data, ACM, New York, 2001, pp. 58\u201366.","DOI":"10.1145\/375663.375670"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1145\/1132863.1132873"},{"key":"R27","doi-asserted-by":"crossref","unstructured":"M. R. Henzinger, P. Raghavan, and S. Rajagopalan,\n                      Computing on data streams\n                      , in External Memory Algorithms, AMS, Providence, RI, 1999, pp. 107\u2013118.","DOI":"10.1090\/dimacs\/050\/05"},{"key":"R28","doi-asserted-by":"crossref","unstructured":"P. Indyk,\n                      Stable distributions, pseudorandom generators, embeddings and data stream computation\n                      , in Proceedings of the IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, Washington, DC, 2000, pp. 189\u2013197.","DOI":"10.1109\/SFCS.2000.892082"},{"key":"R29","doi-asserted-by":"crossref","unstructured":"P. Indyk and D. P. Woodruff,\n                      Optimal approximations of the frequency moments of data streams\n                      , in Proceedings of the ACM Symposium on Theory of Computing, ACM, New York, 2005, pp. 202\u2013208.","DOI":"10.1145\/1060590.1060621"},{"key":"R30","doi-asserted-by":"crossref","unstructured":"R. Jain, J. Radhakrishnan, and P. Sen,\n                      A direct sum theorem in communication complexity via message compression\n                      , in Proceedings of the International Colloquium on Automata, Languages and Programming, Eindhoven, The Netherlands, 2003, pp. 300\u2013315.","DOI":"10.1007\/3-540-45061-0_26"},{"key":"R31","doi-asserted-by":"crossref","unstructured":"H. Jowhari and M. Ghodsi,\n                      New streaming algorithms for counting triangles in graphs\n                      , in Proceedings of the International Conference on Computing and Combinatorics, Kunming, Yunnan, China, 2005, pp. 710\u2013716.","DOI":"10.1007\/11533719_72"},{"key":"R32","doi-asserted-by":"publisher","DOI":"10.1137\/0405044"},{"key":"R33","unstructured":"R. Kumar, P. Raghavan, S. Rajagopalan, and A. Tomkins,\n                      Extracting large-scale knowledge bases from the web\n                      , in Proceedings of the International Conference on Very Large Data Bases, Edinburgh, Scotland, 1999, pp. 639\u2013650."},{"key":"R34","doi-asserted-by":"crossref","unstructured":"E. Kushilevitz and N. Nisan,\n                      Communication Complexity\n                      , Cambridge University Press, Cambridge, UK, 1997.","DOI":"10.1017\/CBO9780511574948"},{"key":"R35","doi-asserted-by":"publisher","DOI":"10.1090\/S0273-0979-1995-00569-0"},{"key":"R36","doi-asserted-by":"crossref","unstructured":"A. McGregor,\n                      Finding graph matchings in data streams\n                      , in Proceedings of APPROX-RANDOM, Berkeley, CA, 2005, pp. 170\u2013181.","DOI":"10.1007\/11538462_15"},{"key":"R37","doi-asserted-by":"crossref","unstructured":"S. Muthukrishnan,\n                      Data Streams: Algorithms and Applications\n                      , Now Publishers, Boston, 2005.","DOI":"10.1561\/9781933019604"},{"key":"R38","doi-asserted-by":"publisher","DOI":"10.1137\/0222016"},{"key":"R39","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(92)90260-M"},{"key":"R40","doi-asserted-by":"crossref","unstructured":"M. Thorup and U. Zwick,\n                      Approximate distance oracles\n                      , in Proceedings of the ACM Symposium on Theory of Computing, ACM, New York, 2001, pp. 183\u2013192.","DOI":"10.1145\/380752.380798"},{"key":"R41","unstructured":"M. Zelke,\n                      \n                        k\n                        -connectivity in the semi-streaming model\n                      \n                      , http:\/\/arxiv.org\/abs\/cs\/0608066, 2006."},{"key":"R42","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2007.06.004"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/070683155","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:22:23Z","timestamp":1787336543000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/070683155"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2008,12,19]]},"references-count":42,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2009,1]]}},"alternative-id":["10.1137\/070683155"],"URL":"https:\/\/doi.org\/10.1137\/070683155","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2008,12,19]]}}}