akosiraff

Download ConributorHashMapGUI

Dec 6th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/conributorhashmapgui/
  3. At this point, you decide to implement a Hash structure for the contributor data to prepare for searches. You will read the contributor information from a file provided; it is a comma delimited (CSV) file. As each record is read, create a Hash table for the ID field. The limitation for the Hash table is that it has a size of 5, so you need to be able to handle collisions. Collisions should be resolved through the use of a linked list for the ID values (implement this using a stack). Your design should include the following:
  4. A Hash table pointing to a structure for a linked list that contains only the following information:
  5. Each Hash Bucket Collision Item will have the following Information:
  6. • ID: Integer; //identifier key for future needs
  7. Hash Bucket Functions/Methods:
  8. • Input constructor: //to accept a string for the name and additional information for each contributor (you will only need the ID portion of the input data)
  9. • Hash Function constructor: (Hint: You only have 5 Hash buckets, so the function can be a very simple calculation.)
  10. • Pop constructor
  11. • Push constructor
  12. • Print constructor: //to show the contents of a Hash bucket
  13. Deliverables:
  14. • A fully documented program to load the Hash table with collisions being handled as a linked list, implemented as a Stack
  15. • A test plan to show how the program runs and can be executed
  16. • A screenshot showing that the program loaded the data, and after all data is loaded, shows the contents of the first Hash bucket (ideally this is Bucket 0)
  17. Download: http://solutionzip.com/downloads/conributorhashmapgui/
Add Comment
Please, Sign In to add comment