{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:39:48Z","timestamp":1787337588126,"version":"build-2736575974"},"reference-count":66,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"4","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2008,1]]},"abstract":"<jats:p>We present linear-time algorithms for the classic problem of finding dominators in a flowgraph, and for several other problems whose solutions require evaluating a function defined on paths in a tree. Although all these problems had linear-time solutions previously, our algorithms are simpler, in some cases substantially. Our improvements come from three new ideas: a refined analysis of path compression that gives a linear bound if the compressions favor certain nodes; replacement of random-access table look-up by a radix sort; and a more careful partitioning of a tree into easily managed parts. In addition to finding dominators, our algorithms find nearest common ancestors off-line, verify and construct minimum spanning trees, do interval analysis of a flowgraph, and build the component tree of a weighted tree. Our algorithms do not require the power of a random-access machine; they run in linear time on a pointer machine. The genesis of our work was the discovery of a subtle error in the analysis of a previous allegedly linear-time algorithm for finding dominators. That algorithm was an attempt to simplify a more complicated algorithm, which itself was intended to correct errors in a yet earlier algorithm. Our work provides a systematic study of the subtleties in the dominators problem, the techniques needed to solve it in linear time, and the range of application of the resulting methods. We have tried to make our techniques as simple and as general as possible and to understand exactly how earlier approaches to the dominators problem were either incorrect or overly complicated.<\/jats:p>","DOI":"10.1137\/070693217","type":"journal-article","created":{"date-parts":[[2008,11,12]],"date-time":"2008-11-12T18:07:19Z","timestamp":1226513239000},"page":"1533-1573","source":"Crossref","is-referenced-by-count":53,"title":["Linear-Time Algorithms for Dominators and Other Path-Evaluation Problems"],"prefix":"10.1137","volume":"38","author":[{"given":"Adam L.","family":"Buchsbaum","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Loukas","family":"Georgiadis","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Haim","family":"Kaplan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Anne","family":"Rogers","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert E.","family":"Tarjan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jeffery R.","family":"Westbrook","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2008,11,12]]},"reference":[{"key":"R1","unstructured":"A. V. Aho and J. D. Ullman,\n                      The Theory of Parsing, Translation, and Compiling, Vol.\n                      II:\n                      Compiling\n                      , Prentice\u2013Hall, Englewood Cliffs, NJ, 1972."},{"key":"R2","unstructured":"A. V. Aho, J. E. Hopcroft, and J. D. Ullman,\n                      The Design and Analysis of Computer Algorithms\n                      , Addison\u2013Wesley, Reading, MA, 1974."},{"key":"R3","doi-asserted-by":"publisher","DOI":"10.1137\/0205011"},{"key":"R4","unstructured":"A. V. Aho, R. Sethi, and J. D. Ullman,\n                      Compilers: Principles, Techniques, and Tools\n                      , Addison\u2013Wesley, Reading, MA, 1986."},{"key":"R5","doi-asserted-by":"publisher","DOI":"10.1016\/j.jtbi.2004.05.009"},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1016\/j.ecolmodel.2005.10.016"},{"key":"R7","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.2000.1079"},{"key":"R8","doi-asserted-by":"publisher","DOI":"10.1016\/S0020-0190(97)00170-1"},{"key":"R9","doi-asserted-by":"crossref","unstructured":"S. Alstrup, C. Gavoille, H. Kaplan, and T. Rauhe,\n                      Nearest common ancestors: A survey and a new distributed algorithm\n                      , in Proceedings of the 14th ACM Symposium on Parallel Algorithms and Architecture, 2002, pp. 258\u2013264.","DOI":"10.1145\/564870.564914"},{"key":"R10","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539797317263"},{"key":"R11","doi-asserted-by":"crossref","unstructured":"M. E. Amyeen, W. K. Fuchs, I. Pomeranz, and V. Boppana,\n                      Fault equivalence identification using redundancy information and static and dynamic extraction\n                      , in Proceedings of the 19th IEEE VLSI Test Symposium, 2001, pp. 124\u2013130.","DOI":"10.1109\/VTS.2001.923428"},{"key":"R12","doi-asserted-by":"crossref","unstructured":"M. A. Bender and M. Farach-Colton,\n                      The LCA problem revisited\n                      , in Proceedings of the 4th Latin American Symposium on Theoretical Informatics, Lecture Notes in Comput. Sci. 1776, Springer-Verlag, New York, 2000, pp. 88\u201394.","DOI":"10.1007\/10719839_9"},{"key":"R13","first-page":"37","volume":"3","author":"Bor\u016fvka O.","year":"1926","journal-title":"Pr\u00e1ce Moravsk\u00e9 P\u0159\u00edrodov\u011bdeck\u00e9 Spole\u010dnosti v Brn\u011b (Acta Societ. Science. Natur. Moravicae)"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539792242144"},{"key":"R15","doi-asserted-by":"crossref","unstructured":"A. L. Buchsbaum, H. Kaplan, A. Rogers, and J. R. Westbrook,\n                      Linear-time pointer-machine algorithms for least common ancestors, MST verification, and dominators\n                      , in Proceedings of the 30th ACM Symposium on Theory of Computing, 1998, pp. 279\u2013288.","DOI":"10.1145\/276698.276764"},{"key":"#cr-split#-R16.1","doi-asserted-by":"crossref","unstructured":"A. L. Buchsbaum, H. Kaplan, A. Rogers, and J. R. Westbrook, A new, simpler linear-time dominators algorithm, ACM Trans. Programming Languages and Systems, 20 (1998), pp. 1265-1296","DOI":"10.1145\/295656.295663"},{"key":"#cr-split#-R16.2","doi-asserted-by":"crossref","unstructured":"Corrigendum, 27 (2005), pp. 383-387.","DOI":"10.1017\/S0960116305000813"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(94)00183-J"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1145\/355541.355562"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1145\/115372.115320"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1145\/128749.128750"},{"key":"R21","unstructured":"B. Dixon, M. Rauch, and R. E. Tarjan,\n                      Verification and Sensitivity Analysis of Minimum Spanning Trees in Linear Time\n                      , Tech. report CS-TR-289-90, Department of Computer Science, Princeton University, Princeton, NJ, 1990."},{"key":"R22","doi-asserted-by":"publisher","DOI":"10.1137\/0221070"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1145\/322234.322235"},{"key":"R24","doi-asserted-by":"publisher","DOI":"10.1145\/24039.24041"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(94)00262-2"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(05)80064-9"},{"key":"R27","unstructured":"H. N. Gabow,\n                      Data structures for weighted matching and nearest common ancestors with linking\n                      , in Proceedings of the 1st ACM-SIAM Symposium on Discrete Algorithms, SIAM, Philadelphia, 1990, pp. 434\u2013443."},{"key":"R28","doi-asserted-by":"publisher","DOI":"10.1016\/S0020-0190(00)00051-X"},{"key":"R29","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(85)90014-5"},{"key":"R30","doi-asserted-by":"crossref","unstructured":"H. N. Gabow, J. L. Bentley, and R. E. Tarjan,\n                      Scaling and related techniques for geometry problems\n                      , in Proceedings of the 16th ACM Symposium on Theory of Computing, 1984, pp. 135\u2013143.","DOI":"10.1145\/800057.808675"},{"key":"R31","unstructured":"L. Georgiadis,\n                      Linear-Time Algorithms for Dominators and Related Problems\n                      , Ph.D. thesis, Department of Computer Science, Princeton University, Princeton, NJ, 2005."},{"key":"R32","unstructured":"L. Georgiadis and R. E. Tarjan,\n                      Finding dominators revisited\n                      , in Proceedings of the 15th ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2004, pp. 862\u2013871."},{"key":"R33","unstructured":"L. Georgiadis and R. E. Tarjan,\n                      Dominator tree verification and vertex-disjoint paths\n                      , in Proceedings of the 16th ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2005, pp. 433\u2013442."},{"key":"R34","doi-asserted-by":"publisher","DOI":"10.7155\/jgaa.00119"},{"key":"R35","doi-asserted-by":"publisher","DOI":"10.1109\/MAHC.1985.10011"},{"key":"R36","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(97)00291-0"},{"key":"R37","doi-asserted-by":"crossref","unstructured":"D. Harel,\n                      A linear time algorithm for finding dominators in flow graphs and related problems\n                      , in Proceedings of the 17th ACM Symposium on Theory of Computing, 1985, pp. 185\u2013194.","DOI":"10.1145\/22145.22166"},{"key":"R38","doi-asserted-by":"publisher","DOI":"10.1137\/0213024"},{"key":"R39","doi-asserted-by":"publisher","DOI":"10.1145\/201019.201022"},{"key":"R40","doi-asserted-by":"publisher","DOI":"10.1007\/BF02526037"},{"key":"R41","doi-asserted-by":"publisher","DOI":"10.1007\/BF02579443"},{"key":"R42","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9939-1956-0078686-7"},{"key":"R43","doi-asserted-by":"publisher","DOI":"10.1145\/357062.357071"},{"key":"R44","doi-asserted-by":"publisher","DOI":"10.1006\/jagm.1996.0815"},{"key":"R45","doi-asserted-by":"publisher","DOI":"10.1145\/362835.362838"},{"key":"R46","doi-asserted-by":"publisher","DOI":"10.1137\/0219060"},{"key":"R47","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539705447256"},{"key":"R48","unstructured":"S. Pettie and V. Ramachandran,\n                      Computing shortest paths with comparisons and additions\n                      , in Proceedings of the 13th ACM-SIAM Symposium on Discrete Algorithms, ACM, New York, SIAM, Philadelphia, 2002, pp. 267\u2013276."},{"key":"R49","doi-asserted-by":"publisher","DOI":"10.1145\/505241.505243"},{"key":"R50","doi-asserted-by":"publisher","DOI":"10.1145\/361532.361566"},{"key":"R51","doi-asserted-by":"crossref","unstructured":"L. Quesada, P. Van Roy, Y. Deville, and R. Collet,\n                      Using dominators for solving constrained path problems\n                      , in Proceedings of the 8th International Symposium on Practical Aspects of Declarative Languages, Lecture Notes in Comput. Sci. 3819, Springer-Verlag, New York, 2006, pp. 73\u201387.","DOI":"10.1007\/11603023_6"},{"key":"R52","doi-asserted-by":"publisher","DOI":"10.1137\/0217079"},{"key":"R53","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(83)90006-5"},{"key":"R54","doi-asserted-by":"publisher","DOI":"10.1137\/0201010"},{"key":"R55","doi-asserted-by":"publisher","DOI":"10.1137\/0203006"},{"key":"R56","doi-asserted-by":"publisher","DOI":"10.1145\/321879.321884"},{"key":"R57","doi-asserted-by":"publisher","DOI":"10.1007\/BF00268499"},{"key":"R58","doi-asserted-by":"publisher","DOI":"10.1145\/322154.322161"},{"key":"R59","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(79)90042-4"},{"key":"R60","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(74)80049-8"},{"key":"R61","doi-asserted-by":"publisher","DOI":"10.1145\/62.2160"},{"key":"R62","doi-asserted-by":"publisher","DOI":"10.1145\/316542.316548"},{"key":"R63","unstructured":"A. K. Tsakalides and J. van Leeuwen,\n                      An Optimal Pointer Machine Algorithm for Finding Nearest Common Ancestors\n                      , Tech. report RUU-CS-88-17, Department of Computer Science, University of Utrecht, Utrecht, Germany, 1988."},{"key":"R64","unstructured":"J. van Leeuwen,\n                      Finding Lowest Common Ancestors in Less Than Logarithmic Time\n                      , unpublished report, 1976."},{"key":"R65","doi-asserted-by":"publisher","DOI":"10.1145\/358841.358852"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/070693217","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:19:25Z","timestamp":1787336365000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/070693217"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2008,1]]},"references-count":66,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2008,1]]}},"alternative-id":["10.1137\/070693217"],"URL":"https:\/\/doi.org\/10.1137\/070693217","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2008,1]]}}}