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.
Define a tree edge.
Think about the edges used during BFS or DFS.
What is a cycle in a graph?
Consider the structure of a loop in a path.
What is a tree edge in graph traversal?
Think about the edges that allow you to explore new vertices.
Does a directed graph have cycles if a back edge exists?
Recall the definition of a back edge presented in class.
Given a directed graph defined by edges: (1, 2), (2, 3), (3, 1), (4, 5), and (5, 4), identify the cycles present.
Look for edges that link back to previously visited nodes.
Using a BFS algorithm, identify if the graph contains cycles and classify the edges in a graph presenting: (A, B), (B, C), (C, A), (D, E).
Trace the graph traversal to see if any nodes revisit earlier nodes.
5 more questions in this section. Enroll free to practise them all.
Enroll free