Question: What is the primary purpose of the \'visited\' array in Dijkstra\'s algorithm?
Options:
Correct Answer: To keep track of which vertices have been processed.
Solution:
The \'visited\' array in Dijkstra\'s algorithm is used to keep track of which vertices have been processed to avoid reprocessing them.