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.
Define in-degree.
Think about how many arrows point at a specific point.
What is one method to find out which vertex to process in topological sort?
What means you don't need to wait for anything else to start working?
What is the time complexity using an adjacency matrix for topological sorting?
Think about the size of the matrix.
True or False: In topological sorting, a vertex with in-degree 0 can be processed immediately.
Consider what in-degree indicates during processing.
Given a directed graph represented by edges: {(A, B), (B, C), (C, D), (A, D)}, implement a topological sorting algorithm using an adjacency list.
Consider how you will maintain the list as you process each vertex.
In a project management scenario with tasks represented as a directed graph, design a strategy to implement topological sorting to schedule tasks while minimizing dependencies.
Think about how dependencies affect the order of execution.
5 more questions in this section. Enroll free to practise them all.
Enroll free