Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a DAG?
Think about directed edges and cycles.
Explain topological sorting in one sentence.
No hint provided
In a DAG, how many times can you revisit a vertex?
Consider the meaning of acyclic.
True or False: A topological sort can only be performed on graphs with cycles.
Remember the definition of topological sorting.
Given a DAG with courses and their respective prerequisites represented as edges, calculate the total time to complete all courses and identify the longest path.
Concentrate on sequences of dependencies.
Explain why finding the longest path in a graph with cycles is a different challenge and what strategies might be applicable.
Think about cycles and their meaning for paths.
5 more questions in this section. Enroll free to practise them all.
Enroll free