Purpose: HeinousAlienLocator is a class that can be used to locate an alien if it is on the JMU campus.
People in Purple has a sensor system that can determine if a particular alien is in any square grid/sub-grid. However, it can not determine exactly where the alien is. Hence, to determine if an alien is in a particular cell, the sensor must be "told" to scan that particular cell.
The sensor system also has one other significant limitation -- it can only perform 50 scans on a single charge. Hence, since there are 262,144 cells on campus, the algorithm they originally thought they would use to locate an alien (i.e., to loop through all of the cells) does not work.
The system must satisfy the following operational requirements:
OR-1 HeinousAlienLocator must be able to determine if an alien is or isn't on campus.
OR-2 If an alien is on campus, HeinousAlienLocator must be able to determine the cell that the alien is in. (Note: A particular alien can be in at most one cell.)
Copyright 2011