1.

In most of the cases, topological sort starts from a node which has __________(a) Maximum Degree(b) Minimum Degree(c) Any degree(d) Zero DegreeI have been asked this question during an online exam.Enquiry is from Topological Sort in portion Miscellaneous of Data Structures & Algorithms II

Answer»

The CORRECT OPTION is (d) Zero DEGREE

Easiest explanation - Topological sort starts with a node which has zero degree. If MULTIPLE such nodes EXISTS then it can start with any node.



Discussion

No Comment Found

Related InterviewSolutions