Question
Easy

Consider a directed graph $G={V,E}$ with vertex set V = {A, B, C, D} and edge set E = {AB, AC, BC, BD, DC}. Which of the following is a valid topological ordering of graph G?

1
ABCD
2
BACD
3
BADC
4
ABDC
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Data Structures (Through C++)
Topic: Data Structure Concepts
Correct Answer
Option D
Explanation

The correct option is (4): A topological ordering of a directed graph is a linear arrangement of its vertices such that for every directed edge $(u, v)$, vertex $u$ must appear before vertex $v$ in the sequence. This property ensures that all precedence constraints are respected, which is critical for scheduling tasks or processing dependencies. The given graph has five precedence constraints defined by its edges $E = {AB, AC,…Read More