Video


A video that accompanies this page is here....

It's time to take our best shot at a concept design. It will be a deliverable for the next phase (coding design).

HashTable Object Diagram
Here is our concept design.

We have added the maxLoadRatio as a sub-component
HashTable
  |
  +------- buckets ------- an Array
  |
  +------- maxLoadRatio -- an integer
Bucket
Each bucket in the "buckets" collection is itself also a collection/list with the properties shown.
Bucket properties:


Bucket Elements
The elements in each bucket are Association objects.

Each Association holds a key and value.

Remember that elements are added to a hash table using the method "put(key, value)".