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 what a graph is.
Think about what makes up a graph.
What does BFS stand for?
Think about how the algorithm explores the graph.
What is the function of the queue in BFS?
Think about the order of exploration.
True or False: BFS can only be used in weighted graphs.
Consider the properties of BFS.
Given a graph with weights, can you apply the BFS algorithm to find the shortest path? What modifications would you have to make?
Consider what BFS generally assumes about edge distances.
If we add another component to the graph that is disconnected from the initial source, how would BFS react? What would be the result?
Think about how BFS operates on connected vertices.
6 more questions in this section. Enroll free to practise them all.
Enroll free