GATE Assistant

Past questions › Data Science and Artificial Intelligence › GATE 2024

GATE 2024 · DA · MSQ · 2 marks · Programming, Data Structures and Algorithms › Graph Theory & Traversals

GATE 2024 Data Science and Artificial Intelligence question: Consider the directed acyclic graph (DAG) below: Which of the following is/are valid…

Consider the directed acyclic graph (DAG) below:

figure

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

Show answer

This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.

Practise this question with exam-style marking