Data Structure and Algorithms - Programming Assignment 4 | CS 303, Assignments of Computer Science

Material Type: Assignment; Class: Algorithms and Data Structures; Subject: Computer Science; University: University of Alabama - Birmingham; Term: Spring 2008;

Typology: Assignments

Pre 2010

Uploaded on 04/12/2010

koofers-user-e7y
koofers-user-e7y 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 303L Data Structure and Algorithm
March 7, 2008
Programming Assignment 4
(Due on March 27, 2008)
In this assignment, we are going to develop a simple version of navigation system. Your
program should allow users to specify their “From city” and their “To city”. In addition, you
should provide two kinds of searching strategies depth first search and breath first search. On
the basis of the users’ inputs, your navigation system will show the path between current
location (From city) and destination (To City).
The following figure represents part of the inter-state highway connections between Alabama,
Georgia, and Florida. The red dots represent the city, the orange lines indicate the inter-state
highways, and the blue numbers on the inter-state highways show the distance between the
two cities.
pf2

Partial preview of the text

Download Data Structure and Algorithms - Programming Assignment 4 | CS 303 and more Assignments Computer Science in PDF only on Docsity!

CS 303L Data Structure and Algorithm

March 7, 2008

Programming Assignment 4

(Due on March 27, 2008)

In this assignment, we are going to develop a simple version of navigation system. Your program should allow users to specify their “From city” and their “To city”. In addition, you should provide two kinds of searching strategies – depth first search and breath first search. On the basis of the users’ inputs, your navigation system will show the path between current location (From city) and destination (To City).

The following figure represents part of the inter-state highway connections between Alabama, Georgia, and Florida. The red dots represent the city, the orange lines indicate the inter-state highways, and the blue numbers on the inter-state highways show the distance between the two cities.

CS 303L Data Structure and Algorithm

March 7, 2008

Two-page report is required.

( Bonus 1 ) Implement your navigation system with a convenient GUI for allowing users to input their current location and destination with drop-down list, and specify searching method with a radio button. Or you may design your own GUI.

( Bonus 2 ) Your navigation system allows users to specific one or more middle-points that users want to visit during their travel.

( Bonus 3 ) Implement an algorithm (Dijkstra’s algorithm or your own algorithm) to find the shortest path between the current and destination cities.