Find Jobs
Hire Freelancers

c++ hash table

$10-15 USD

Concluído
Publicado há quase 22 anos

$10-15 USD

Pago na entrega
Name the program for this assignment "e_records.cc." 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 [login to view URL] 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 [login to view URL] 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
ID do Projeto: 2861053

Sobre o projeto

5 propostas
Projeto remoto
Ativo há 22 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$6 USD em 14 dias
4,9 (5 avaliações)
1,8
1,8
5 freelancers estão ofertando em média $9 USD for esse trabalho
Avatar do Usuário
See private message.
$12,75 USD em 14 dias
4,4 (71 avaliações)
5,5
5,5
Avatar do Usuário
See private message.
$6,80 USD em 14 dias
4,9 (27 avaliações)
4,6
4,6
Avatar do Usuário
See private message.
$8,50 USD em 14 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$12,75 USD em 14 dias
0,0 (1 avaliação)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
13
Membro desde jul. 7, 2002

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.