
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Instructor: V. Pa´ul Pauca
due date: December 4
In this programing project we are going to implement Dijkstra’s algorithm for finding shortest paths in undirected graphs G = (V, E) whose edge lengths `e are positive integers. Recall that, like breadth-first search, the complexity of Dijkstra’s algorithm is O(|V | + |E|).
Algorithm. A pseudo-code implementation of Dijkstra’s algorithm appears in page 110 of the textbook. This implementation requires operations on a priority queue. We will use a binary heap, as described in pages 113–115, to implement our priority queue and associated operations.
The Graphs. We’ll attempt to apply Dijkstra’s algorithm to two fairly large graphs (New York City and Rome99) from the 9th DIMACS Implementation Challenge sponsored by NSF, which can be downloaded from the following link: http://www.dis.uniroma1.it/˜challenge9/download.shtml The New York City graph contains 264,346 vertices and 733,846 edges. The Rome99 graph contains 3,353 vertices and 8,870 edges. Edge lengths indicate physical distance. You can also download this data from our course webpage.
Programming.
Verify your binary heap implementation using appropriate test code.
What to turn in.
CSC 222 Fall 2008 1