A new, simpler linear-time dominators algorithm

Citation
Al. Buchsbaum et al., A new, simpler linear-time dominators algorithm, ACM T PROGR, 20(6), 1998, pp. 1265-1296
Citations number
29
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS
ISSN journal
01640925 → ACNP
Volume
20
Issue
6
Year of publication
1998
Pages
1265 - 1296
Database
ISI
SICI code
0164-0925(199811)20:6<1265:ANSLDA>2.0.ZU;2-H
Abstract
We present a new linear-time algorithm to find the immediate dominators of all vertices in a flowgraph. Our algorithm is simpler than previous linear- time algorithms: rather than employ complicated data structures, we combine the use of microtrees and memoization with new observations on a restricte d class of path compressions. We have implemented our algorithm, and we rep ort experimental results that-show that the constant factors are low. Compa red to the standard, slightly superlinear algorithm of Lengauer and Tarjan, which has much less overhead, our algorithm runs 10-20% slower on real flo wgraphs of reasonable size and only a few percent slower on very large flow graphs.