Hash Search[Problem Description]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.[Basic Requirements]1) Each record contains 3 data items, i.e. name, sex and phone number.2) 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 803) 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.
Below is the data text.file.
LiuJing Female 13814231733WangAnqi Male 15855129526HeLin Male 13920967276ZhaoQingyue Female 15856127737LiLifang Female 13601289664MaXinyi Male 15819083913ZhangHaibo Male 15840971965GaoJiaqing Male 15853215366HuangQingxi Male 13766575535ZhangLili Female 15858890761XuYifeng Female 15850132029WangLi Male 15854511744LvHaizhi Female 15854309809XuWanhu Male 13811777653ChengChun Male 13830972677ZhongKailin Male 13777904575LiHaiqing Male 15816004696ZhouXibo Male 15355066165TaoQiqi Male 13919904080PengLicong Male 18917809360XueMingming Female 15856600930WeiBingzheng Male 13501099785ZhongWenchao Female 15853350467LiuLianchun Male 13641009449WangChengyang Male 15851765759DongHaohao Female 18725055061WangShishi Female 13431097635LiuWanli Male 13770099933ZhangYuhu Female 15851361356XuFeiyan Female 15123564419YangQingfeng Male 15019080367LiuHailiang Male 13919128263DuanRui Male 13619750782
i have asked this question many times but you ignored please i need the problem in c language....please help!
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here