...

/

Quiz: BFS and Shortest Paths

Quiz: BFS and Shortest Paths

Test your understanding of BFS and shortest paths in unweighted graphs.

Multiple choice questions

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

Question 1 of 30 attempted
...