Outcomes Addressed
This assignment should be done individuallyProcedureYour program should generate all of the results for the following table:
Where HC? represent the following hashCode implementations:
You should use the words.txt file as your input data set when generating the above table. Relevant tidbitYou will not be able to use the HashSet to do your tests. You should use either an array or an ArrayList instead. String.hashCode OverwritingCreate three new classes that contain a String as a field and override the hashCode() method. Deliverable (11pm Thursday of week 10)You should submit the completed table and a brief (1-2 paragraphs) discussion on which ranks the four hash code methods and identifies an optimal table size for each. Are any of the hash code methods clearly superior or inferior to the others? Your submission may either be in the form of an email message or hardcopy. It should include your documented source code as an attachment. If you have any questions, consult your instructor. AcknowledgmentThis assignment was originally developed by Dr. Chris Taylor. |