Trivia ForgePlay free →

Which graph traversal uses a queue to visit vertices in increasing order of their distance from the source?

Show answer

Breadth-First Search (BFS)

BFS explores the neighbor nodes first before moving to the next level neighbors. It is commonly used to find the shortest path in unweighted graphs.

Would you remember this in 6 months?

Trivia Forge uses spaced repetition so facts stick. Free, no signup needed.

Turn on Algorithms practice →

More Algorithms trivia

See all 83 →