Winter 2024 CS 32

Programming Assignment 4
BruinTour

Due 11:00 PM Thursday, March 14

The Project 4 specification document has been posted.

The posted provided code includes a main routine you can use to test the whole system, as well as the .h files the spec says we will provide. Additionally, you can use mapdata.txt (a large map data file). You can create other data files to help you test (e.g. small map data files with simpler to read numbers).

Just for your information, here are some of the web sites Carey used when building the map data file:

Updates

3/12 10:50pm: Spec p. 27 was updated to clarify that generate_tour should not generate a turn command for a turn of less than 1 degree or greater than 359 degrees.

3/10 2:50pm: The spec orignally said to give the file you turn in with your hash map the name HashMap.h, but everywhere else we call it hashmap.h. Just to be consistent, we changed the spec to say it should be named hashmap.h, but we'll accept either name for the file. The class itself must be named HashMap.

3/9 9:20pm: If you can't get your HashMap class to work well enough to make progress on the other classes that use HashMaps, you can use the implementation in scaffoldhashmap.h temporarily, switch your attention to implementing the other classes, and go back to working on your HashMap implementation later. Make sure you save your current HashMap somewhere else for when you go back to working on it. (You can't turn in this scaffold implementation as yours, since it uses unordered_map to implement HashMap, which is forbidden by the spec.)

3/8 3:00am: If you downloaded (or viewed in a browser) the spec before 3/8 3:00am, re-download (or reload it in your browser); a number of issues have been fixed:

3/8 1:00am: If you downloaded provided.zip before 3/8 1:00am, re-download it; the last (I hope) little issue has been fixed. Each of the six files in the zip file should replace the ones you dowloaded before.

3/6 11:30pm: If you downloaded provided.zip before 3/6 11:30pm, re-download it; some little issues have been fixed. Each of the six files in the zip file should replace the ones you dowloaded before.

3/6 11:10pm: If you downloaded mapdata.txt before 3/6 11:10pm, re-download it; there was an incorrect point of interest count for one of the street segments.