Abstract

The depth of a flow graph is the maximum number of back edges in an acyclic path, where a back edge is defined by some depth-first spanning tree for the flow graph. In the case of a reducible graph, the depth is independent of the depth-first spanning tree chosen. We show that the computation of the depth of a reducible flow graph requires polynomial time. Our algorithm is O(ne) on a flow graph of n nodes and e edges. Since e ≤2 n for normal flow graphs, our algorithm is really O ( n 2 ). While even an O ( n 2 ) algorithm is not likely to be acceptable, it is suggestive of the possibility of a more efficient algorithm. Finally, we show that the general problem of computing the depth of an arbitrary flow graph is NP -complete.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.