Question: In Dijkstra\'s algorithm, what is the purpose of the \'visited\' set?
Options:
Correct Answer: To avoid processing the same vertex multiple times
Solution:
The \'visited\' set is used to keep track of the vertices that have already been processed to avoid processing the same vertex multiple times, ensuring efficiency.