Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a Directed Acyclic Graph (DAG)?
Think about arrows and paths.
What does topological sorting accomplish?
Consider task dependencies.
What defines a Directed Acyclic Graph (DAG)?
Focus on the acyclic part.
Topological sorting arranges vertices in what manner?
Think about the prerequisite relationships.
Given a set of tasks with dependencies listed as pairs (A, B) meaning A must be done before B, design a DAG and determine the longest path.
Map out tasks visually.
You have a set of 10 courses with specified prerequisites. How would you use the longest path concept to determine the course load a student would have each semester?
Using a graph drawing can help clarify dependencies.
4 more questions in this section. Enroll free to practise them all.
Enroll free