Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a directed graph?
Think about how edges connect the vertices.
Define a backward edge.
It 'backs' up the tree.
What type of edge connects a vertex to one of its descendants in a DFS tree?
This edge helps in traversing downward.
If a traversal reveals a backward edge, what does this indicate?
Think about the relationship to ancestors.
Create your own directed graph with at least 6 vertices, and label all edge types found in a DFS traversal. Identify any cycles.
Draw the graph and trace your DFS path!
Given a directed graph, how can you determine the number of strongly connected components? Write a pseudocode for this process.
Think about how you can utilize DFS both ways to uncover hidden connections.
5 more questions in this section. Enroll free to practise them all.
Enroll free