Question: If a graph has V vertices and E edges, what is the worst-case time complexity of Dijkstra\'s algorithm using an adjacency matrix?
Options:
Correct Answer: O(V^2)
Solution:
When using an adjacency matrix, the worst-case time complexity of Dijkstra\'s algorithm is O(V^2) because it requires checking all vertices for the minimum distance.