Question: What is the time complexity of BFS in terms of the number of vertices V and edges E?
Options:
Correct Answer: O(V + E)
Solution:
The time complexity of BFS is O(V + E) because it visits each vertex and edge once.