A railway company is considering opening up some new lines between seven towns A-G. The possible lines and the cost of setting them up, in millions of dollars, are defined in the following graph. 20 B 20 20 30 10 35 E G 40 F a. Use Dijkstra's algorithm to find the minimum cost of connecting the cities starting at city A. Use this format to show all iterations: vertex known dv Pv A B C D E F G b. From (a) list the minimum cost and the path for the following lines: a. A-C b. A-E c. A-F c. Use Kruskal's algorithm to find the minimum cost of opening lines so that it is possible to travel between any two of the towns by rail, state the order the lines should be opened to achieve this minimum cost, draw the final MST. d. Use Prims' algorithm to find the minimum cost of opening lines so that it is possible to travel between any two of the towns by rail, state the order the lines should be opened to achieve this minimum cost, draw the final MST.
A railway company is considering opening up some new lines between seven towns A-G. The possible lines and the cost of setting them up, in millions of dollars, are defined in the following graph. 20 B 20 20 30 10 35 E G 40 F a. Use Dijkstra's algorithm to find the minimum cost of connecting the cities starting at city A. Use this format to show all iterations: vertex known dv Pv A B C D E F G b. From (a) list the minimum cost and the path for the following lines: a. A-C b. A-E c. A-F c. Use Kruskal's algorithm to find the minimum cost of opening lines so that it is possible to travel between any two of the towns by rail, state the order the lines should be opened to achieve this minimum cost, draw the final MST. d. Use Prims' algorithm to find the minimum cost of opening lines so that it is possible to travel between any two of the towns by rail, state the order the lines should be opened to achieve this minimum cost, draw the final MST.
Related questions
Question
![A railway company is considering opening up some new lines between seven towns A-G. The
possible lines and the cost of setting them up, in millions of dollars, are defined in the following
graph.
20
B
20
20
30
10
35
E
G
40
F
a. Use Dijkstra's algorithm to find the minimum cost of connecting the cities starting at city A.
Use this format to show all iterations:
vertex known dv Pv
A
B
C
D
E
F
G
b. From (a) list the minimum cost and the path for the following lines:
a. A-C
b. A-E
c. A-F
c. Use Kruskal's algorithm to find the minimum cost of opening lines so that it is possible to
travel between any two of the towns by rail, state the order the lines should be opened to
achieve this minimum cost, draw the final MST.
d. Use Prims' algorithm to find the minimum cost of opening lines so that it is possible to travel
between any two of the towns by rail, state the order the lines should be opened to achieve
this minimum cost, draw the final MST.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fca89b17f-da83-4c4f-b463-591da94467c9%2F5d611bc1-1c9e-4385-9a0c-bd70421461a6%2Ftlgz25_processed.jpeg&w=3840&q=75)
Transcribed Image Text:A railway company is considering opening up some new lines between seven towns A-G. The
possible lines and the cost of setting them up, in millions of dollars, are defined in the following
graph.
20
B
20
20
30
10
35
E
G
40
F
a. Use Dijkstra's algorithm to find the minimum cost of connecting the cities starting at city A.
Use this format to show all iterations:
vertex known dv Pv
A
B
C
D
E
F
G
b. From (a) list the minimum cost and the path for the following lines:
a. A-C
b. A-E
c. A-F
c. Use Kruskal's algorithm to find the minimum cost of opening lines so that it is possible to
travel between any two of the towns by rail, state the order the lines should be opened to
achieve this minimum cost, draw the final MST.
d. Use Prims' algorithm to find the minimum cost of opening lines so that it is possible to travel
between any two of the towns by rail, state the order the lines should be opened to achieve
this minimum cost, draw the final MST.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)