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;
}
⭐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
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.