Changes

195 bytes added ,  23:25, 18 March 2007
java api links added
Line 7: Line 7:     
<blockquote>
 
<blockquote>
For the first part of your project, you will implement a data dictionary that supports both city names and city coordinates as keys. You will also need to write an interpreter that will be able to handle basic XML commands. Your data dictionary can be written by merely playing games with comparators, thereby convincing a good old TreeMap or TreeSet to act like it's something else altogether. Commands will require you to insert verified cities into the spatial map, and to delete them from the spatial map. The role of the spatial map is to support range searches where, given a location in 2-d space and a radius, you will find all the cities within that circle, including on the border. These types of operations are not efficient using the treemap of coordinates.
+
For the first part of your project, you will implement a data dictionary that supports both city names and city coordinates as keys. You will also need to write an interpreter that will be able to handle basic XML commands. Your data dictionary can be written by merely playing games with comparators, thereby convincing a good old [http://java.sun.com/j2se/1.5.0/docs/api/java/util/TreeMap.html TreeMap] or [http://java.sun.com/j2se/1.5.0/docs/api/java/util/TreeSet.html TreeSet] to act like it's something else altogether. Commands will require you to insert verified cities into the spatial map, and to delete them from the spatial map. The role of the spatial map is to support range searches where, given a location in 2-d space and a radius, you will find all the cities within that circle, including on the border. These types of operations are not efficient using the [http://java.sun.com/j2se/1.5.0/docs/api/java/util/TreeMap.html TreeMap] of coordinates.
 
</blockquote>
 
</blockquote>
  
103

edits