Question: What is the primary purpose of the \'visited\' set in Dijkstra\'s algorithm?
Options:
Correct Answer: To avoid processing the same vertex multiple times
Solution:
The \'visited\' set is used to avoid processing the same vertex multiple times, ensuring that each vertex is only processed once.