Question 1
Consider the following strategy to solve the single source shortest path problem with positive integer edge weights from a source vertex s:
Replace each edge with weight w by w edges of weight 1 connected by new intermediate nodes. Run BFS(s) on the modified graph to find the shortest path to each of the original vertices in the graph.
Which of the following statement is true?
This strategy will not solve the problem correctly.
This strategy will only work if the graph is acyclic.
This strategy will solve the problem correctly and is as efficient as Dijkstra’s algorithm.
This strategy will solve the problem correctly, but is not as efficient as Dijkstra’s algorithm.