Consider how to resolve a collision

Assignment Help Computer Engineering
Reference no: EM132110193

For this project, you will take the PhoneBook class re-write it so that it contains a hash table as a data field.

In other words, instead of storing Person objects in a binary search tree, the PhoneBook class will store these Person objects in a hash table.

The key to this project is in developing a good hashCode()function, which translates a key value into an index value.

Organize your project into the following classes:

Person, which represents the name and phone number of a person, you will store instances of this class in the phone book.

PhoneBook, which represents the phone book. The class should contain a hash table as a datafield. This table contains the people in the book. The phone book should contain the add,delete, find, change, quit, save and restore methods.

Menu, which provides the program's user interface-contains a main() method which creates a PhoneBook object, displays the PhoneBook's methods as different menu selections and invokesthe PhoneBook method the user selects.

HashTable, which is the ADT HashTable. This is the class which contains the PhoneBook'scollection of data (all of the People objects in the PhoneBook), as well as the operations whichcan be performed on that collection of data.

The key to this project is in the implementation of a hashCode() method, which "translates" a key valueinto a numeric index value, which identifies the location in which an item will be "stored" in the hashtable.

You must also consider how to resolve a "collision". This is when two key values are translated into the same index value.

Reference no: EM132110193

Questions Cloud

Forensic challenges of umapolophous encryption : CSI6116 Network Security - Edith Cowan University - The forensic challenges of umapolophous encryption - What challenges stakeholders face due to offensive
Describe how you automated the process : Understanding Digital Revolution Parchment Basement Assignment, Federation University. Describe how you automated the process (approx 150 words)
Create a query that prompts for the professors name : Create a query that prompts for the name of a department and course level and returns the timetable of the courses for this particular group
Do you think sqa plan is just busy work : What is your opinion about SQA plan, do you think SQA plan is just busy work, or does it really pay off?
Consider how to resolve a collision : In other words, instead of storing Person objects in a binary search tree, the PhoneBook class will store these Person objects in a hash table.
Determine sets of prices which meet the objectives : ITECH1100 Understanding the Digital Revolution Assignment - Parchment Basement, Federation University Australia. Determine sets of prices which meet objectives
Create an application for online shopping : When the user selects to purchase an item, the user will be prompted for the quantity to buy. Create an application for online shopping.
Describe in brief the methods used to collect the data : EGH418 Biomechanics - Describe in brief the methods used to collect the data. Consider anthropometry measures, force plate and motion capture data including
Develop a uml class diagram diagram for a classic car : In this project, you have the opportunity to develop a UML class diagram diagram for a classic car museum database system.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd