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 the in-degree of a vertex with no incoming edges?
Think about the definition of in-degree.
How can we represent a DAG using an adjacency list?
Visualize the connections between vertices.
What does in-degree indicate for a vertex?
Think about where the edges are coming from.
True or False: In a DAG, a vertex may have a cycle.
Recall the properties of a DAG.
Create an adjacency list and calculate the in-degrees for a graph described by the edges: A -> B, A -> C, B -> C, B -> D, C -> E.
Start by visualizing how each vertex connects.
Given a list of tasks and prerequisites, outline the steps to achieve a topological sort and provide the order of task completion.
Keep track of tasks with no remaining prerequisites.
5 more questions in this section. Enroll free to practise them all.
Enroll free