Algorithms · Level 2 of 5
Topological Sort
An ordering of a directed acyclic graph that places dependencies before dependents.
Several valid orderings may exist.
Example
Lessons are arranged so prerequisites appear first.
Listen to the definition and example
Audio transcript
Topological Sort. An ordering of a directed acyclic graph that places dependencies before dependents. Several valid orderings may exist. For example: Lessons are arranged so prerequisites appear first.
Explore this concept
Why it matters
This helps you compare problem-solving methods and their computational tradeoffs.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.