Hashing and Hashing code

Jul 5th, 2015
Computer Science
Price: $20 USD

Question description

(a) [2 points] Perform an Internet search and briefly discuss in a few paragraphs a computer 

related algorithm based on hashing. Provide an example with a diagram or table to help 

illustrate how the algorithm works. List your sources at the end of your paragraphs using 

APA format. 

(b) [3 points] Download the HashCode.cpp file and implement the details of the functions 

called calculateHashCode() and insertHashTable(). The calculateHashCode() 

function takes a given string and adds the ASCII value for each character in the string to 

produce a hash key. Assume the hash table has a size of 256 so that a hash code can be 

generated by taking the value of the sum of the characters modulo 256. The 

insertHashTable() takes the given hash code and the key (or string) and inserts it into 

the hash table. 



Tutor Answer

(Top Tutor) Daniel C.
School: University of Virginia

Studypool has helped 1,244,100 students

Review from our student for this Answer

Jul 13th, 2015
"Excellent work as always thanks so much"
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1828 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors