Asymptotic Requirements
The various implementations in this project MUST obey the following
asymptotic time and space bounds:
- All GridWorld2d<T>implementations MUST provide
time access to the
contents of any gridworld cell.
- All GridWorld2d<T>implementations MUST require no more than
space
to represent a map comprising
cells. For example, a
RectangularGridWorld2d<T> allocated for a
by
map MUST require no more than
units of space, for
some (small) constants
and
. Note that this requirement
considers items of type T to require only
space.
If the user instantiates a
RectangularGridWorld2d<java.util.Map>, that will
clearly consume a non-constant amount of space in each cell.
Such possibilities are beyond the designer's control, and you
are free to treat items of type T as constant space for
the purposes of this analysis.
Terran Lane
2005-09-29