Skip to main content
Log in

Generalized Dominators for Structured Programs

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract.

Recently it has been discovered that control flow graphs of structured programs (\equiv goto-free) have bounded treewidth t . Moreover, a bounded tree decomposition can be obtained directly from the parsing of the program [23]. In this paper we show that this knowledge can be used to design a fast algorithms for the generalized dominator problem from control flow analysis: given a digraph G=(V,E) with a start node s∈ V , for every v∈ V find the set of predecessors of v that can be reached from s without passing any other predecessors of v . We give an O(|V|t 4 ) algorithm for this problem. The problem was originally proposed by Gupta [12]. Without the restriction to bounded treewidth the fastest algorithm runs in O(|V|*|E|) and is due to Alstrup et al. [2].

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received January 30, 1997; revised May 14, 1998.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Alstrup, S., Lauridsen, P. & Thorup, M. Generalized Dominators for Structured Programs . Algorithmica 27, 244–253 (2000). https://doi.org/10.1007/s004530010018

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s004530010018

Navigation