Examveda

How is the time complexity of BFS affected when the graph is represented using an adjacency matrix?

A. It becomes O(V log V).

B. It becomes O(E log V).

C. It remains O(V2).

D. It becomes O(V + E).

Answer: Option C


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)