c++ hash table

Name the program for this assignment "" The purpose of this program is to give you experience implementing a hash table, handling collisions, and using hashing with a linear function. Hashing is a method that enables access to table items in time that is relatively constant and independent of the items in the table. Hashing uses a hash function and a scheme for resolving collisions. A hash function is a function that maps the search key of a table item into a location that will contain that item. A collision occurs when a hash function maps two or more distinct serach keys into the same location. In this assignment you will write a program that maintains the names, addresses, and telephone numbers of a arbitutary group of people, and thus serves as an address book. You should allow the user to enter a filename of a data file that contains the original contents of the address book. Also, you should be able to enter, delete, modify, or search the data stored in the address book. The person's last name, followed by the person's first name should be the search key. The program should save the address book for later use under the same name the user provided as input initially. Design a class to represent the people in the address book. Call this class "Add_DB". "Address_DB" contains all the information for the people in the address book. Design another class called "Hash_DB" to represent the address book itself. "Hash_DB" is a table ADT. Use a linear function to determine the location of a key in the hash table; and used a binary search tree when handling collisions within "Hash_DB." This means, your hash table is basically a table of pointers to binary search trees, where each binary tree contains the names of the persons whose last names begin with the same first letter. Each node in the binary tree will content a pointer to the the location of where the person's information is stored in "Address_DB." When the phone book is printed, the list of names should be printed in alphabetically order according to last and first names; Also the information pertaining to the person stored in "Address_DB" should be printed, followed by the line number of the information's starting location in "Address_DB." See the sample input file "hash_input" . *We habe to do some changes:add_db replace with [url removed, login to view] have to read the file into a vector,

## Deliverables

(which is indexed,has a line#).find the person with the line #.Convert the binary tree into a [url removed, login to view] have to have two copies,save the original under a different name. There is a sample input we have to use.

## Platform

Visual C++ Windows XP

Habilidades: Programación en C, Ingeniería, Microsoft, MySQL, PHP

Ver más: write a program for binary search, vector binary search, vector begin, uses of binary trees, uses of binary, use of binary search tree, tree starting with n, trees search, trees c, tree binary search, table trees, table of contents design, search trees, search in binary tree, search for trees, search binary tree, search binary search tree, program of binary search in c, program for binary search in c, program for binary search, program data vector, order of trees, order of binary tree, order of binary search, order letter contents

Información del empleador:
( 1 comentario ) boca raton, United States

Nº del proyecto: #6181268

1 freelancer está ofertando el promedio de $34 para este trabajo


We are interested to work on this project and this is our bid. We can do exactly what you wants to do. Thank you. Feel free to contact us for any query. Have a nice day.

$34 USD en 1 día
(25 comentarios)