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.
Define a Directed Acyclic Graph (DAG).
Think about the property of cycles in graphs.
What does topological sorting achieve?
Consider how tasks might depend on one another.
What is the primary characteristic of a Directed Acyclic Graph?
Recall the definition of a DAG.
Is it NP-hard to find the longest path in arbitrary graphs?
Think about the implications of cycles.
Given a directed acyclic graph of 5 vertices and the following edges: (1,2), (1,3), (2,4), (3,4), (4,5). Calculate the longest path and describe how you computed it.
Draw the graph to visualize all potential paths.
An arbitrary graph includes cycles: If a vertex connects back to itself multiple times, how would you begin to analyze the longest path?
Think about how to handle vertices that lead back to previous nodes.
6 more questions in this section. Enroll free to practise them all.
Enroll free