Færdiggjort

Hashing function

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;

}

Evner: C++ Programmering, C programmering, Java, Software Arkitektur, C# Programmering

Om arbejdsgiveren:
( 7 bedømmelser ) GUILDERLAND, United States

Projekt ID: #22784714

Tildelt til:

peakdev213

⭐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 di Flere

$23 USD in 7 dage
(7 bedømmelser)
3.0

6 freelancere byder i gennemsnit $22 på dette job

arjun366333

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. + [login to view URL] Flere

$20 USD in 7 dage
(13 bedømmelser)
4.5
dmitrysokolov308

Hello I have read your project description and I am interested in the project. As you can see my profile, I am a full-time developer and have just completed many projects. Specially, I have wide experience in C/C++ Flere

$20 USD på 1 dag
(2 bedømmelser)
3.4
Fullstact

Hello. How are you. I'm software engineer and algorithm expert. I have many experiences in c, c++, c#, java, python, node.js. I can complete your project successfully. Thanks.

$25 USD på 1 dag
(2 bedømmelser)
2.4
turgenev1988

Hello. I am a expert in C++ with full experiences for 6+ years. I can handle your requirements using C++ application. If you hire me, I can finish it as you want. I am always ready to work for you and can I start immed Flere

$23 USD in 7 dage
(1 bedømmelse)
0.6
bojanalmei

⭐⭐⭐Hashing function⭐⭐⭐ I have read your description in detail and got a convinced I can complete this work with my heavy experiences in Hashing function My GitHub url and profile are here. [login to view URL] Flere

$23 USD på 1 dag
(0 bedømmelser)
0.0