Question: If a graph is represented using an adjacency matrix, what is the time complexity of BFS?
Options:
Correct Answer: O(V^2)
Solution:
For an adjacency matrix representation, BFS has a time complexity of O(V^2) due to the need to check all possible edges.