{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:24:59Z","timestamp":1787340299423,"version":"build-2736575974"},"reference-count":23,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"1","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2012,1]]},"abstract":"<jats:p>Let S be a set of n intervals in $\\mathbb{R}$, and let $(\\mathbf{S}, +)$ be any commutative semigroup. We assign a weight $\\omega(s) \\in \\mathbf{S}$ to each interval in S. For a point $x \\in \\mathbb{R}$, let $S(x) \\subseteq S$ be the set of intervals that contain x. Given a point $q \\in \\mathbb{R}$, the stabbing-semigroup query asks for computing $\\sum_{s \\in S(q)} \\omega(s)$. We propose a linear-size dynamic data structure, under the pointer-machine model, that answers queries in worst-case $O(\\log n)$ time and supports both insertions and deletions of intervals in amortized $O(\\log n)$ time. It is the first data structure that attains the optimal $O(\\log n)$ bound for all three operations. Furthermore, our structure can easily be adapted to external memory, where we obtain a linear-size structure that answers queries and supports updates in $O(\\log_B n)$ I\/Os, where B is the disk block size. For the restricted case of a nested family of intervals (either every pair of intervals is disjoint or one contains the other), we present a simpler solution based on dynamic trees.<\/jats:p>","DOI":"10.1137\/10078791x","type":"journal-article","created":{"date-parts":[[2012,1,24]],"date-time":"2012-01-24T18:23:35Z","timestamp":1327429415000},"page":"104-127","source":"Crossref","is-referenced-by-count":9,"title":["An Optimal Dynamic Data Structure for Stabbing-Semigroup Queries"],"prefix":"10.1137","volume":"41","author":[{"given":"Pankaj K.","family":"Agarwal","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lars","family":"Arge","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Haim","family":"Kaplan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Eyal","family":"Molad","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert E.","family":"Tarjan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ke","family":"Yi","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2012,1,24]]},"reference":[{"key":"R1","unstructured":"P. K. Agarwal, L. Arge, and K. Yi,\n                      An optimal dynamic interval stabbing-max data structure?\n                      , in Proceedings of the Sixteenth ACM-SIAM Symposium on Discrete Algorithms, 2005, pp. 803\u2013812."},{"key":"R2","doi-asserted-by":"publisher","DOI":"10.1145\/48529.48535"},{"key":"R3","doi-asserted-by":"crossref","unstructured":"S. Alstrup, T. Husfeldt, and T. Rauhe,\n                      Marked ancestor problems\n                      , in Proceedings of the 39th IEEE Symposium on Foundations of Computer Science, 1998, pp. 534\u2013543.","DOI":"10.1109\/SFCS.1998.743504"},{"key":"R4","doi-asserted-by":"crossref","unstructured":"L. Arge,\n                      External memory data structures\n                      , in Handbook of Massive Data Sets, Kluwer Academic Publishers, Dordrecht, The Netherlands, 2002, pp. 313\u2013357.","DOI":"10.1007\/978-1-4615-0005-6_9"},{"key":"R5","doi-asserted-by":"publisher","DOI":"10.1137\/S009753970240481X"},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1109\/5.163409"},{"key":"R7","unstructured":"T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein,\n                      Introduction to Algorithms\n                      , 2nd ed., The MIT Press, Cambridge, MA, 2001."},{"key":"R8","doi-asserted-by":"crossref","unstructured":"M. de Berg, M. van Kreveld, M. Overmars, and O. Schwartzkopf,\n                      Computational Geometry: Algorithms and Applications\n                      , 2nd ed., Springer, Berlin, 2000.","DOI":"10.1007\/978-3-662-04245-8"},{"key":"R9","doi-asserted-by":"publisher","DOI":"10.1080\/00207168308803364"},{"key":"R10","doi-asserted-by":"crossref","unstructured":"A. Feldmann and S. Muthukrishnan,\n                      Tradeoffs for packet classification\n                      , in Proceedings of the 19th IEEE INFOCOM, 2000, pp. 1193\u20131202.","DOI":"10.1109\/INFCOM.2000.832493"},{"key":"R11","doi-asserted-by":"crossref","unstructured":"P. Ferragina and S. Muthukrishnan,\n                      Efficient dynamic method-lookup for object oriented languages,\n                      in Proceedings of the Fourth Annual European Symposium on Algorithms, 1996, pp. 107\u2013120.","DOI":"10.1007\/3-540-61680-2_50"},{"key":"R12","doi-asserted-by":"crossref","unstructured":"P. Ferragina, S. Muthukrishnan, and M. de Berg,\n                      Multi-method dispatching: A geometric approach with applications to string matching problems\n                      , in Proceedings of the 31st ACM Symposium on Theory of Computing, 1999, pp. 483\u2013491.","DOI":"10.1145\/301250.301378"},{"key":"R13","doi-asserted-by":"publisher","DOI":"10.1109\/65.912717"},{"key":"R14","doi-asserted-by":"crossref","unstructured":"H. Kaplan, E. Molad, and R. E. Tarjan,\n                      Dynamic rectangular intersection with priorities\n                      , in Proceedings of the 35th ACM Symposium on Theory of Computing, 2003, pp. 639\u2013648.","DOI":"10.1145\/780542.780635"},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1007\/BF01840386"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539705447256"},{"key":"R17","doi-asserted-by":"crossref","unstructured":"S. Sahni, K. Kim, and H. Lu,\n                      Data structures for one-dimensional packet classification using most-specific-rule matching\n                      , in Proceedings of the International Symposium on Parallel Architectures, Algorithms and Networks, 2002, pp. 3\u201314.","DOI":"10.1109\/ISPAN.2002.1004254"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(83)90006-5"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(79)90042-4"},{"key":"R20","doi-asserted-by":"crossref","unstructured":"M. Thorup,\n                      Space efficient dynamic stabbing with fast queries\n                      , in Proceedings of the 35th ACM Symposium on Theory of Computing, 2003, pp. 649\u2013658.","DOI":"10.1145\/780542.780636"},{"key":"R21","doi-asserted-by":"crossref","unstructured":"J. S. Vitter,\n                      External memory algorithms and data structures\n                      , in External Memory Algorithms, American Mathematical Society, Providence, RI, 1999, pp. 1\u201338.","DOI":"10.1090\/dimacs\/050\/01"},{"key":"R22","doi-asserted-by":"crossref","unstructured":"J. Yang and J. Widom,\n                      Incremental computation and maintenance of temporal aggregates\n                      , in Proceedings of the 17th IEEE International Conference on Data Engineering, 2001, pp. 51\u201360.","DOI":"10.1109\/ICDE.2001.914813"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1145\/322261.322274"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/10078791X","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:28:56Z","timestamp":1787336936000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/10078791X"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,1]]},"references-count":23,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2012,1]]}},"alternative-id":["10.1137\/10078791X"],"URL":"https:\/\/doi.org\/10.1137\/10078791x","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,1]]}}}