CS2851 -- Lab 6: HashSet Collision Analysis

Winter 2005-2006
Objectives Addressed
Procedure

You should write a program that will analyze the impact of varying the load factor of the HashSet when used to store the dictionary file used in Lab 4.

Your program should generate all of the results for the following table:

Load Factor # of collisions # of empty buckets Maximum # of elements in a bucket
0.25   
0.50   
0.75   
0.99   

You should assume that the capacity of the HashSet is doubled whenever the load factor is exceeded.

Relevant tidbit

You will not be able to use the HashSet to do your tests. You should use either an array or an ArrayList instead.

Lab report (due at the end of the week 10 lab)

Here is a template file to use as a starting point for this report.

Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.

If you have any questions, consult your instructor.

Acknowledgment

This assignment was originally developed by Dr. Chris Taylor.

Last Updated: Friday, 17-Feb-2006 06:55:45 CST