Find Jobs
Hire Freelancers

Hashing function

$20-25 USD

Completed
Posted over 4 years ago

$20-25 USD

Paid on delivery
Develop a cpp program to find how many different hash values can generated for all N-char strings, N < 5. The hash function is given below. A N-char string has only N a-z and A-Z characters. For instance, the set of N=1 includes all strings from A to z (A, B, C, ... , X, Y, Z, a, b, c, ..., x, y, z); N=2 has AA to zz, N=3, AAA to zzz. Expected outcome of the your program is the following: N=1, 52 strings map to ?? different hash values N=2, ?? strings map to ?? different hash values N=3, ?? strings map to ?? different hash values N=4, ?? strings map to ?? different hash values /--- Hashing Function--- / int hash(string key) { int hash = 0; for(int i = 0; i < [login to view URL](); i++) hash = (hash * 7) + key[i]; return hash; }
Project ID: 22784714

About the project

3 proposals
Remote project
Active 4 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
Awarded to:
User Avatar
⭐How are you ?⭐ I have a detail look to your project, and I'm sure that I will complete your project surely. I am good at c++ programming. I already have a experience in hashing. I am sure high quality. Please let's discuss in detail. Thank you so much! Best Regards
$23 USD in 7 days
5.0 (7 reviews)
3.0
3.0
3 freelancers are bidding on average $22 USD for this job
User Avatar
Hello, i'm interested in your project. Please send me a message so that we can discuss more. I prefer to submit my detailed proposal after our discussion. Note: + We are flexible with changes. + https://www.freelancer.com/u/arjun366333 - myprofile link + We also provide post-implementation application support &maintenance Thanks, regards Kanta Singh.
$20 USD in 7 days
4.1 (14 reviews)
4.5
4.5

About the client

Flag of UNITED STATES
GUILDERLAND, United States
5.0
8
Payment method verified
Member since Nov 26, 2018

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.