Question: What is the output of Dijkstra\'s algorithm if the graph is disconnected?
Options:
Correct Answer: Shortest path to reachable nodes only
Solution:
Dijkstra\'s algorithm will return the shortest path to reachable nodes only, while unreachable nodes will have infinite distance.