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 an adjacency matrix.
Think about how two vertices are related.
What data structure is commonly used in BFS to keep track of vertices to be explored?
Remember the FIFO principle.
What structure does BFS use to manage vertices to be explored?
It's the opposite of the structure that explores the last added item first.
True or False: BFS guarantees the shortest path in terms of the number of edges in a weighted graph.
Think about how edges might affect traversal.
Given a graph with 10 vertices and known edges, write out the BFS execution steps starting from vertex 1, track all parents and levels.
Pay attention to how you fill the queue and mark levels.
Explain why a graph might require adjustments when converting from adjacency matrix to adjacency list.
Consider how many edges exist relative to the maximum possible edges.
6 more questions in this section. Enroll free to practise them all.
Enroll free