Question: What is the time complexity of Breadth-First Search (BFS) in a graph with V vertices and E edges?
Options:
Correct Answer: O(V + E)
Solution:
BFS explores all vertices and edges, leading to a time complexity of O(V + E).