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 DFS stand for?
Think about how it explores graphs.
What is the primary strategy of DFS?
Consider how it contrasts with BFS.
What does DFS explore first?
Remember the keyword 'Depth'.
True or False: DFS guarantees the shortest path in a graph.
Think about how the two strategies differ.
Given a directed graph, how would you modify DFS to count the number of strongly connected components?
Think about how connections are established backwards.
Implement a DFS algorithm that returns the path taken from the starting vertex to a target vertex.
How would you track the path taken during recursion?
6 more questions in this section. Enroll free to practise them all.
Enroll free