All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2021

Which of the following concepts can be used to identify loops?

A. Depth first ordering

B. Dominators

C. Reducible graphs

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. A, B and C

Explanation

Loops in flow graphs are found using depth-first ordering (back edges), dominators (a back edge's head dominates its tail) and reducibility.

More Theory of Computation and Compilers questions