Hash Search Design a hash table which the phone number is the key word and can be used to do search. The phone number is looked on as key and thus the hash function should be designed based on it. Each record contains 3 data items, i.e. name, sex and phone number. Read the datum from txt file, use phone number as the key to design hash function, using open addressing method to solve conflicts. Build hash table and show highest number of hashes. There are 450 records in total, and the size of hash table is defined as 467. The maximum number of hashes is required to be no more than 80 When the user input a phone number, your program should do hash search based on this number. If the number dose exist then the corresponding information should be shown, and the number of hashes should be shown as well. If the number does not exist in the table, still show the number of hashes and the information: this number not exist

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hash Search

Design a hash table which the phone number is the key word and can be used to do search. The phone number is looked on as key and thus the hash function should be designed based on it.

  • Each record contains 3 data items, i.e. name, sex and phone number.
  • Read the datum from txt file, use phone number as the key to design hash function, using open addressing method to solve conflicts. Build hash table and show highest number of hashes. There are 450 records in total, and the size of hash table is defined as 467. The maximum number of hashes is required to be no more than 80

When the user input a phone number, your program should do hash search based on this number. If the number dose exist then the corresponding information should be shown, and the number of hashes should be shown as well. If the number does not exist in the table, still show the number of hashes and the information: this number not exist

 

     In doing this the program should be done in C and it should be able to do the search base on the data...

 

data

LiuJing Female 13814231733
WangAnqi Male 15855129526
HeLin Male 13920967276
ZhaoQingyue Female 15856127737
LiLifang Female 13601289664
MaXinyi Male 15819083913
ZhangHaibo Male 15840971965
GaoJiaqing Male 15853215366
HuangQingxi Male 13766575535
ZhangLili Female 15858890761
XuYifeng Female 15850132029
WangLi Male 15854511744
LvHaizhi Female 15854309809
XuWanhu Male 13811777653
ChengChun Male 13830972677
ZhongKailin Male 13777904575
LiHaiqing Male 15816004696
ZhouXibo Male 15355066165
TaoQiqi Male 13919904080
PengLicong Male 18917809360
XueMingming Female 15856600930
WeiBingzheng Male 13501099785
ZhongWenchao Female 15853350467
LiuLianchun Male 13641009449
WangChengyang Male 15851765759
DongHaohao Female 18725055061
WangShishi Female 13431097635
LiuWanli Male 13770099933
ZhangYuhu Female 15851361356
XuFeiyan Female 15123564419
YangQingfeng Male 15019080367
LiuHailiang Male 13919128263
DuanRui Male 13619750782
HuYue Male 13665701003
XueYanyan Female 15951655823
FengLiqiang Male 15851367899
ZhaoShurao Female 13124691440
SongLi Male 15956734914
ChengMeixiang Female 13912646721
LinXuerui Female 13819152390
ShenNanyue Female 15500000242
ZhangTianfan Male 15359808675
LiuTing Female 18560231750
LiCaiyun Female 13609927552
MaoXinyi Female 15219210233
LiuSu Female 13550828317
ZhangYaoying Female 15062039198
ZhaoChenyu Male 18395811764
LiXiang Male 15597719478
ZhaoZiyuan Male 13890610226
YangQinlu Female 15759418225
ChenQi Male 18274234492
ShiYize Male 18885301946
QinLijiao Female 13199218928
DongWeiliang Male 13487711293
ZhouHaoyan Male 18189121521
LiXinyue Female 18283124394
LiJiahui Female 15783614978
LiuDingming Male 15153822948
WangWeilai Male 13889417369
WangYi Female 13672926377
SaMier Male 13254316640
LuDefu Male 15558801506
BiTe Female 18584123434
JiaBode Male 13453823790
AoTuo Male 18782610583
KeLisi Male 13897605315
GuMa Male 13510906613
DaiSita Male 15929524013
ALan Male 15068902524
BianXiaoping Male 15634801255
ShiDifu Male 13507925096
JinYixian Male 13551108412
RuiKa Male 13706239987
MuYan Female 13571110148
ZhangYeming Male 18473600922
NanDi Male 15727134586
XinDi Female 15566309001
MaDian Male 18570322833
TianJun Male 13472215734
KeYouwen Female 13011301658
TiWa Female 13993806550
AnXing Female 13509803558
HongAnxu Male 15726720902
OuYangyun Male 18682900943
BaiYechen Male 15438001338
CaiQilong Male 13412517159
JianKaikai Male 18925703683
WenTianxi Male 13594415214
ZhuHongzhao Male 18078727958
LiuYihao Male 15243203446
YeChunrao Male 13908030552
HuZhenfei Male 18820612154
WangZhenxing Male 13991237050
ZhaoJiajie Male 18140904090
YangYang Male 18919022884
ZengHao Female 15912131995
GuanTianhao Male 15501110783
DuWei Male 18997317285
ZhengChengyu Male 13578024413
LuYizhou Male 13808102785
GuoFan Male 13170410122
ZhangZhourong Male 18422022750
GuYang Male 13897120565
ZhaChencheng Male 18851026560
WangLi Female 18307209644
ZhuShibiao Male 18015520170
LiuTian Female 18651239220
ChuWeicun Male 15642020993
LiPeiyan Male 18551600545
ZengFanyi Male 13011601215
WangXinyi Female 15068902657
YangJianmei Female 18820625562
WangZijing Female 15367504191
ZhangHe Female 15916500719
GongMingze Male 13226618318
FangYuanzhou Male 15487105685
GuPeng Male 18818415484
WangJing Male 13162000052
DaiXian Male 18331022125
ZengYuan Male 15248300688
RanGuanghao Male 15575612122
YuanWenxuan Male 15871021772
LanYuxiang Male 13141131920
TanYan Male 15869508150
MuZhaoxi Male 15128920739
WangMaoan Male 13513502206
MinDingyao Male 15199008125
TangXiaolong Male 18672235924
LiXiukun Male 15926030648
PengJiaze Male 13871503758
LiuYixin Female 15958207492
ChenYibing Female 18507207571
LiuDingqi Female 15783237574
YuanYuan Female 15336402330
SunHuan Female 15949320828
XiaoPing Female 13642324264
LongRuoyu Female 13769911365
WangHaoxing Male 18418718637
ZhangXinzhu Male 13659223154
DingHang Male 13266104433
YangWenXi Male 15653702660
ZhongKunyu Male 18791724836
WangJie Male 13130603859

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Encryption and Decryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education