Practice: Separate chaining

This practice problem was originally no to be turned in, but I'm making it a homework problem to be turned in by Monday, Apr 20. The iterator part is still "optional", but I highly recommend that you test yourself to see if you can do it.

1. Introduction

The goal of this exercise is to understand separate chaining. It corresponds to Project 7.1 in the book, pg 525, with a couple of additions.

2. Set up

Find the project code for this at /homes/tvandrun/Public/cs345/hashing. This is the same code base as for the next two projects. The code contains packages adt, impl, and test.

3. Implementing separate chaining

Your task is to complete the following methods:

To test everything except the iterator, use SCHMTestNoIterator. To test the whole thing, use SCHMTest

Turn in SeparateChainingHashMap.java to

/cslab/class/cs345/(your userid)/sepchain

Due Monday, Apr 16, 5:00pm

A solution will be available in /homes/tvandrun/Public/cs345/sepchain-soln.


Thomas VanDrunen
Last modified: Wed Jan 8 13:38:37 CST 2020