Add few functions to the program

So I have a program that I need to modify a bit! Things to add:

1) Determine Hash Size: count the lines in the input file, multiply it by 2, and choose the next prime number. I have the size defined, but need to change it by counting lines.

2) Save to file function (save data to text file in a hash sequence)

3) Re-hashing (when load factor is 75%, allocate another hash table (2 * actual size, and choose the next prime number), then traverse the hash table and hash each item into the new table using the same hash function and collision resolution method, and destroy the old hash table.)

Habilidades: Programação C++

Ver mais: programming hash, prime number function, prime number factor, prime number 2, prime number 1, prime function, is the number 1 prime, is the number 1 a prime number, is prime number, is a prime number, is 3 a prime number, is 2 a prime number, is 1 prime number, is 1 a prime number, is 1 and 2 a prime number, is 11 a prime number, is 0 a prime number, is 0 and 1 a prime number, i 1 a prime number, hash programming, function prime, factor prime number, a prime number, 3 prime number, 2 prime number

Acerca do Empregador:
( 12 comentários ) Sunnyvale, United States

ID do Projeto: #6786422