In a graph containing cycles, _______ sorting cannot be performed as it violates the prerequisite of a directed acyclic graph (DAG).

  • Depth-First
  • Linear
  • Radix
  • Topological
In a graph containing cycles, topological sorting cannot be performed as it violates the prerequisite of a directed acyclic graph (DAG). Topological sorting relies on establishing a linear ordering of vertices, which is not possible in the presence of cycles.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *