Question: What is the time complexity of finding the shortest path in an unweighted graph using BFS?
Options:
Correct Answer: O(m + n)
Solution:
Breadth-first search (BFS) explores all vertices and edges, resulting in a time complexity of O(m + n), where m is the number of edges and n is the number of vertices.