Question: Implement Dijkstra's shortest path algorithm. The program should read the network topology from an input file net.txt, then builds a routing table for EVERY node.

Implement Dijkstra's shortest path algorithm. The program should read the network topology from an input file net.txt, then builds a routing table for EVERY node. A sample input file has been provided at http://cms.dt.uh.edu/faculty/yuans/courses/cs3324/projects/net.txt . You program should support up to 20 nodes. In each line of the input file, the first and the second numbers are the node numbers, the third number is the cost of the link between the two nodes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!