Find Jobs
Hire Freelancers

c++ hash linking and searching

$30-100 USD

In Progress
Posted over 19 years ago

$30-100 USD

Paid on delivery
Topic: hashing, searching. Write a program that uses hashing to store a series of strings. The hash table should have a length of 350. You are given a data file which contains 425 lines. The file attached. The file is terminated by a single line containing a '-' in the first position. The following hashing function is suggested: H = int(k) mod 350, where int(k) = P*k+c summed for all ASCII codes c in the string, where k = 0 is the start value. P is a suitably chosen prime number (choose it yourself). The method of dealing with collisions should be the dynamic linked list version. Your program must analyze the efficiency of your hashing scheme by determining how long the linked lists in the table are, i.e. you must count how many linked lists of length 0, 1, 2 and so on, there are. These results should be presented by your program in easily digestable form. After seeing the results, you might want to try to improve upon your hashing scheme if the number of collisions is excessive. Finally, the data file contains a small fourth section with search words. You should search for each word in your final hash table, and report whether each word is present or not. Your submission should contain the following: - a listing of the program; - a presentation of the hash table statistics; - a presentation of the statistics; - a presentation of the search results; - your analysis of the results (max two pages), including your choice of hash function and why you chose it that way. The program will be marked according to the following criteria: whether the layout of the program is good, whether you have used functions properly, whether you've dealt with the data with minimum duplication of code, whether you've chosen a sensible hash function, and how you've presented the results. Note that you can easily read data from a file by issuing the following command: [login to view URL] < [login to view URL] ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). The project must be completed by the 15th of november 2004. ## Platform The progam should be in c++.
Project ID: 3429964

About the project

11 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
11 freelancers are bidding on average $48 USD for this job
User Avatar
See private message.
$42.50 USD in 3 days
5.0 (151 reviews)
6.9
6.9
User Avatar
See private message.
$51 USD in 3 days
4.9 (212 reviews)
5.8
5.8
User Avatar
See private message.
$51 USD in 3 days
5.0 (79 reviews)
5.8
5.8
User Avatar
See private message.
$55.25 USD in 3 days
5.0 (52 reviews)
4.9
4.9
User Avatar
See private message.
$25.50 USD in 3 days
4.9 (48 reviews)
3.8
3.8
User Avatar
See private message.
$68 USD in 3 days
4.9 (11 reviews)
3.7
3.7
User Avatar
See private message.
$42.50 USD in 3 days
5.0 (6 reviews)
3.0
3.0
User Avatar
See private message.
$51 USD in 3 days
4.8 (3 reviews)
0.9
0.9
User Avatar
See private message.
$85 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 3 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
United Kingdom
5.0
1
Member since Nov 12, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.