Search⌘ K
AI Features

Quiz: BFS and Shortest Paths

Explore and assess your understanding of breadth-first search and shortest path concepts in directed graphs. Learn to identify parent vertices and visualize shortest-path trees through interactive questions.

Multiple choice questions

Technical Quiz
1.

Suppose that you’re running BFS on the graph (left), and the breadth-first tree constructed thus far is shown on the right. What is the next vertex to be visited?

A.

v1v_1

B.

v2v_2

C.

v4v_4

D.

v7v_7


1 / 3

Match

...