GATE 2014 CS (CS1) – Question 23
For the directed graph shown, which statement is TRUE?

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) PSRQ and SPRQ are both topological orderings.
Explanation
The edges require both P and S before R, and R before Q; P and S may appear in either order. Consequently PSRQ and SPRQ both respect every edge, giving **C**. An ordering with Q before R violates R→Q.