ACM Transactions on Programming Languages and Systems · 1979 · 632 citations · 7 references
ComputingComputer ScienceAlgorithmsCombinatoricsTheory Of ComputationAlgorithm AnalysisComputational ComplexityGraph AlgorithmsSearching AlgorithmsAlgorithmic Graph TheoryComputational Complexity Of Graph AlgorithmsDepth-first SearchGraph ProcessingSearch Complexity AnalysisTree Algorithms
The paper presents a fast algorithm for computing dominators in flowgraphs. The algorithm employs depth‑first search and efficient path‑function computations, offering O(m log n) and O(m α(m,n)) implementations that were coded in Algol W and benchmarked against existing O(mn) and bit‑vector methods on an IBM 370/168. On all but the smallest graphs, the algorithm outperformed both the straightforward O(mn) and bit‑vector baselines.
A fast algorithm for finding dominators in a flowgraph is presented. The algorithm uses depth-first search and an efficient method of computing functions defined on paths in trees. A simple implementation of the algorithm runs in O ( m log n ) time, where m is the number of edges and n is the number of vertices in the problem graph. A more sophisticated implementation runs in O ( m α( m , n )) time, where α( m , n ) is a functional inverse of Ackermann's function. Both versions of the algorithm were implemented in Algol W, a Stanford University version of Algol, and tested on an IBM 370/168. The programs were compared with an implementation by Purdom and Moore of a straightforward O ( mn )-time algorithm, and with a bit vector algorithm described by Aho and Ullman. The fast algorithm beat the straightforward algorithm and the bit vector algorithm on all but the smallest graphs tested.
7
Depth-First Search and Linear Graph Algorithms
Robert E. Tarjan · SIAM Journal on Computing · 1972 · 6K citations
Applications of Path Compression on Balanced Trees
Robert E. Tarjan · Journal of the ACM · 1979 · 300 citations · Full text
Edward S. Lowry, C. W. Medlock · Communications of the ACM · 1969 · 229 citations · Full text
Finding Dominators in Directed Graphs
Robert E. Tarjan · SIAM Journal on Computing · 1974 · 219 citations