CMSC 206: Data Structures
Assignment#4

Due on Thursday, October 26, 2017
New deadline: Tuesday, 0ctober 31.

 

In this exercise, we will essentially do something similar to your Assignment#3 but embellish in two ways:

For demonstrating the correctness of your program, test your program for the follwoing inputs:

  1. Cambridge, MA
  2. Philadelphia, PA
  3. Seattle, WA
  4. Pie Town, NM
  5. Surprise, NY
  6. Romance, AR
  7. San Francisco, CA
  8. Okay, OK
  9. Accident, MD
  10. Buffalo, NY

Once you have completed the program, as in Assignment#3,use it to count the number of comparisons needed to answer a query. Then, for the input data above, compute and output the following:

To show your output you may cut and paste the contents of the Console Window in a text/Word file and print it. Additionally, hand in a prinout of the complete Java program.

What to Hand-in:

  1. A complete printout of the latest version of your program(s)
  2. A prinout of your program showing the outputs from the queries above and the comparison data as described above

Back to CS206 Course Materials