Question 182Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

A ______ takes a directed ______ graph G and produces a linear ordering of all its vertices such that for every directed edge <v, w> in G, the vertex v…

A ______ takes a directed ______ graph G and produces a linear ordering of all its vertices such that for every directed edge <v, w> in G, the vertex v comes before the vertex w in the ordering.
  1. Abreadth first search; acyclic
  2. Btopological sort; acyclic
  3. Cbreadth first search; cyclic
  4. Dtopological sort; cyclic
Show answerHide answer

Correct answer: (B) topological sort; acyclic

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 182 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.