Question: If a graph has 5 vertices and 10 edges, what is the maximum time complexity of Dijkstra\'s algorithm using an adjacency matrix?
Options:
Correct Answer: O(5^2)
Solution:
Using an adjacency matrix, the time complexity of Dijkstra\'s algorithm is O(V^2), which in this case is O(5^2) or O(25).