IMPORTANT NOTE: MULTIPLE INPUT FILES WILL BE USED TO GRADE THE ASSIGNMENT. FILE input1.txt IS JUST AN EXAMPLE. YOUR CODE SHOULD WORK WITH ANY INPUT FILE FORMATTED AS SPECIFIED ABOVE.
The program will compute a route between the origin city and the destination city, and will print out both the length of the route and the list of all cities that lie on that route.
Sample run 1: Enter filename: input.txt Enter origin city: Bremen Enter destination city: Frankfurt distance: 455 km route: Bremen to Dortmund, 234 km Dortmund to Frankfurt, 221 km Sample run 2: Enter filename: input.txt Enter origin city: London Enter destination city: Frankfurt distance: infinity route: noneFor full credit, you should produce outputs identical in format to the above two examples. The program should be able to run in debug mode as well. In that mode it will print the correspondence: vertex number - city name and will print the distance and the predecessor arrays.
The implementation must be in C.
Pay close attention to all specifications on this page, including specifications about output format, submission format. Even in cases where the program works correctly, points will be taken off for non-compliance with the instructions given on this page (such as a different format for the program output, wrong compression format for the submitted code, and so on). The reason is that non-compliance with the instructions makes the grading process significantly (and unnecessarily) more time consuming.
April 15 (Tuesday) - Project submission is DUE. April 22 (Tuesday) - Presentation must be completed before this date. After submitting the project, contact the instructor to schedule a meeting time. Dijkstra's algorithm will be presented in class, but it will be presented in the last lectures, which may be past the due dates for the project. Students should study the algorithm on their own and submit on time or even well before the due date.
The assignment should be submitted via Canvas. Submit a ZIPPED directory called honors_project.zip (no other forms of compression accepted, contact the instructor or TA if you do not know how to produce .zip files). The directory should contain source code. Including binaries that work on omega is optional. The submission should also contain a file called README, which should specify precisely:
file: Hamburg Hannover 153 Bremen Hannover 132 Luebeck Hamburg 63 END OF INPUT the correspondence will be 0 - Hamburg 1 - Hannover 2 - Bremen 3 - Luebeck 4 - Hamburg