next up previous
Next: Part 2: EnviroBot Net Up: Part 1: Developing Hanan-0-Cells: Previous: Part 1: Developing Hanan-0-Cells:


Part 1 Command Specification

You will also build a command decoder with a minimal set of commands; you will expand it appropriately later to accommodate commands required for future parts. Each command spans exactly one line; commands will be uppercase, and reasonably sloppy syntax is to be supported (spaces and empty lines are allowed). Documentation and conformance to the rules is worth 10 points for part 1. The clear all function is worth 5 points. The data dictionary development (DD points) is worth 15 points. There are 30 points for developing the map (PR points). And, 40 points are alloted to the rectangle search (AP points).

The following is a list of commands you should support and a description of the output you should give for each one. Note that for all functions, you should print "*****\n" followed by an " ==> " and an echo of the command given. For instance, the entire valid output to CLEAR_ALL() is


*****
 ==> CLEAR_ALL()
All structures are cleared.

The sample output should make this clear. This is done to negate the effects of input redirection and to assist in grading. Note that although it is done in the samples you are not required to reformat the orginial command (fixing spacing, for instance) in any way.

Note: Although you have all doubtlessy implemented your quadtrees in different ways, the PRINT_PRTREE and RECTANGLE_CELLS commands should behave as if they were working with the theoretical model of a quadtree- ie. each node is either a leaf or has four children. Just because you use a NULL pointer to represent an empty leaf, for instance, does not mean that you can skip printing out that direction in your traversal. For this reason your output must match the ta's exactly for these functions to be considered correct. You will be given test files to help ensure that you are formatting correctly.

Note2: You may adopt anyone's BST, so long as it is properly attributed in your documentation. This includes your own BST from 214 (!). The BST need not be balanced; however, no deduction will be made for a correctly working balanced BST. If you are truly ambitious, you can build the B+-tree early. The functions in part one will should give the same result for a BST, a B+-tree, or even an AVL tree, because we aren't checking the dynamic (run time) code size, or the execution time. However, there is no need to do so. You are required to write your own command decoder and PR, but the PR quadtree can be built by extending an existing BST ADT, for example. Or, you can build it from scratch.


next up previous
Next: Part 2: EnviroBot Net Up: Part 1: Developing Hanan-0-Cells: Previous: Part 1: Developing Hanan-0-Cells:
MM Hugue
2002-03-09

Web Accessibility