Topological sort of a Directed Acyclic graph is?

Trang Esther

New member
Topological sort of a Directed Acyclic graph is?
A. Always unique
B. Always Not unique
C. Sometimes unique and sometimes not unique
D. Always unique if graph has even number of vertices
 
Answer: C
Explanation: The topological sort of a graph can be unique if we assume the graph as a single linked list and we can have multiple topological sort order if we consider a graph as a complete binary tree.
 

Tìm kiếm

Back
Top