GATE DA 2024 — Question 51

Programming, Data Structures and Algorithmsbasic graph algorithms: traversals and shortest pathMSQ2 marksEasy

Consider the directed acyclic graph (DAG) below:
Question image
Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?
  1. A
    P Q R S T U V
  2. B
    P R Q V S U T
  3. C
    P Q R S V U T
  4. D
    P R Q S V T U
Practise the full 2024 paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkIntroduction to Algorithms (CLRS)The standard reference behind most GATE algorithm questions.
Practise more on basic graph algorithms: traversals and shortest pathTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group