Question: What is the time complexity of performing a breadth-first search (BFS) on a graph?
Options:
Correct Answer: O(V + E)
Solution:
The time complexity of performing a breadth-first search (BFS) on a graph is O(V + E), where V is the number of vertices and E is the number of edges.