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.
What is the in degree of a vertex?
Think about incoming arrows in a directed graph.
If a vertex has no incoming edges, what is its in degree?
Consider what it means to have no connections coming in.
What does an in degree of 0 indicate about a vertex?
Think about what it means in the context of task dependencies.
True or False: Topological sorting can produce multiple valid orderings.
Consider scenarios with branches in task dependencies.
You are given a DAG representing tasks and their dependencies. Vertex 'A' has edges leading to 'B', 'C', and 'D'. If 'A' is removed, what will be the in degrees of 'B', 'C', and 'D'?
Count how each vertex is affected by the removal of 'A'.
Demonstrate how the choice of vertices with in degree 0 affects the resulting topological order in a DAG you create.
Draw the graph and label the in degrees before experimenting!
4 more questions in this section. Enroll free to practise them all.
Enroll free