1.

Which of the following is not a topological sorting of the given graph?(a) A B C D E F(b) A B F E D C(c) A B E C F D(d) A B C D F EQuery is from Directed Acyclic Graph topic in division Graph of Data Structures & Algorithms IThe question was asked in a national level competition.

Answer»

Right choice is (d) A B C D F E

Explanation: Topological sorting is a LINEAR arrangement of VERTICES such that for every directed edge UV from vertex u to vertex v, u comes before v in the ORDERING. In A B C D F E, F comes before E in ordering.



Discussion

No Comment Found

Related InterviewSolutions