Question: What is the space complexity of Dijkstra\'s algorithm when using a priority queue?
Options:
Correct Answer: O(V)
Solution:
The space complexity of Dijkstra\'s algorithm when using a priority queue is O(V), as it needs to store the distance for each vertex.