Dominator tree certification and divergent spanning trees

Loukas Georgiadis, Robert E. Tarjan

Research output: Contribution to journalArticlepeer-review

14 Scopus citations

Abstract

How does one verify that the output of a complicated program is correct? One can formally prove that the program is correct, but this may be beyond the power of existing methods. Alternatively, one can check that the output produced for a particular input satisfies the desired input-output relation by running a checker on the input-output pair. Then one only needs to prove the correctness of the checker. For some problems, however, even such a checker may be too complicated to formally verify. There is a third alternative: augment the original program to produce not only an output but also a correctness certificate, with the property that a very simple program (whose correctness is easy to prove) can use the certificate to verify that the input-output pair satisfies the desired input-output relation. We consider the following important instance of this general question: How does one verify that the dominator tree of a flow graph is correct? Existing fast algorithms for finding dominators are complicated, and even verifying the correctness of a dominator tree in the absence of additional information seems complicated. We define a correctness certificate for a dominator tree, show how to use it to easily verify the correctness of the tree, and show how to augment fast dominator-finding algorithms so that they produce a correctness certificate. We also relate the dominator certificate problem to the problem of finding divergent spanning trees in a flow graph, and we develop algorithms to find such trees. All our algorithms run in linear time. Previous algorithms apply just to the special case of only trivial dominators, and they take at least quadratic time.

Original languageEnglish (US)
Article number11
JournalACM Transactions on Algorithms
Volume12
Issue number1
DOIs
StatePublished - Nov 2015

All Science Journal Classification (ASJC) codes

  • Mathematics (miscellaneous)

Keywords

  • Connectivity
  • Depth-first search
  • Directed graph
  • Dominators
  • Dynamic list
  • Flow graph
  • Global code optimization
  • Program certification

Fingerprint Dive into the research topics of 'Dominator tree certification and divergent spanning trees'. Together they form a unique fingerprint.

Cite this