1.

Which of the following is not an application of topological sorting?(a) Finding prerequisite of a task(b) Finding Deadlock in an Operating System(c) Finding Cycle in a graph(d) Ordered StatisticsI have been asked this question during an online interview.I'm obligated to ask this question of Topological Sort topic in section Miscellaneous of Data Structures & Algorithms II

Answer»

Right choice is (d) Ordered Statistics

Best explanation: Topological sort TELLS what task should be DONE before a task can be STARTED. It also detects cycle in the GRAPH which is why it is used in the Operating System to find the deadlock. Ordered statistics is an APPLICATION of Heap sort.



Discussion

No Comment Found

Related InterviewSolutions