Dominator Tree — Lengauer-Tarjan

Flow graph → DFS numbering → semidominators → dominator tree, built step by step.

Naive O(V·E) LT simple O(E·log V) LT sophisticated O(E·α(V)) Space O(V+E)
entry r DFS current computing sdom idom fixed idom edge

Flow Graph (left)  |  Dominator Tree (right)

SlowFast

Step Info

Press Start to run, or Step one phase at a time.

State

Phase
Step0 / 0
idom fixed0

Big-O

MethodTime
Naive dataflowO(V·E)
LT simpleO(E·log V)
LT sophisticatedO(E·α(V))
Query domO(1)*
SpaceO(V+E)

Log