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 does the in-degree of a vertex represent?
Think of how many connections come into a node.
Give an example of a vertex with an in-degree of 0.
Look for vertices without any arrows leading in.
What is the in-degree of a vertex?
Think about how many connections come to a specific point.
Can a topological sort be performed on a graph with cycles?
Consider the dependencies and if they loop back on themselves.
Create a DAG with at least 5 vertices and 7 edges, and demonstrate how to perform topological sorting on it.
Start with any vertex that has no incoming connections.
Explain how you would modify the algorithm to handle cases where edges might be added dynamically.
Consider how to integrate new tasks efficiently.
5 more questions in this section. Enroll free to practise them all.
Enroll free