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.
Define a Directed Acyclic Graph (DAG).
Think about what cycles in a graph imply.
What is the purpose of topological sorting?
Consider how tasks would be completed.
What is true about a Directed Acyclic Graph?
Think about what a cycle would mean in terms of task dependencies.
Which of the following is a requirement for topological sorting?
Consider the importance of direction and cycles.
Given five tasks with the following dependencies: A -> B, A -> C, B -> D, C -> D. Describe the topological orderings possible.
Look for tasks without incoming edges to start.
If a new task E is introduced with dependencies: E -> A, how does this affect topological sorting?
Track how each task's position changes.
4 more questions in this section. Enroll free to practise them all.
Enroll free