What is the space complexity of Breadth-First Search (BFS) algorithm?

1 answer

Answer

1222715

2026-04-26 09:16

+ Follow

The space complexity of the Breadth-First Search (BFS) algorithm is O(V), where V is the number of vertices in the graph being traversed.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.