Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define what a graph is.
Think about what elements are needed to form a graph.
What does BFS stand for?
Consider the order in which nodes are visited.
What is the main purpose of BFS?
Consider the structure of a tree as you think about traversal methods.
True or False: A directed graph can have cycles.
Imagine following arrows along a path in a graph.
Given the following undirected graph, write pseudocode to perform BFS to find all connected components.
Focus on marking nodes as you traverse.
In a directed graph with back edges, devise an approach to identify all strongly connected components. Outline the steps in your solution.
Consider how the order of finished times can help in traversal.
6 more questions in this section. Enroll free to practise them all.
Enroll free