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 how edges connect vertices and the absence of cycles.
What does topological sorting help us achieve?
Think about the order of tasks based on prerequisites.
What is a Directed Acyclic Graph?
Focus on the term 'Acyclic'.
True or False: A topological sort only exists for cyclic graphs.
Think of the definition of a topological sort.
Given a DAG representing a simplified project plan with tasks as vertices (A, B, C, D) and dependencies (A -> B, A -> C, B -> D, C -> D), calculate the longest path. What implications does this have for project scheduling?
Visualize the tasks and dependencies.
If a graph has vertices with both indegrees and outdegrees, how would you adjust the approach to find the longest path compared to a typical DAG?
Consider what happens if you can revisit vertices.
5 more questions in this section. Enroll free to practise them all.
Enroll free