Question: Write a python 3 program that implements a hashing function that converts a string to an integer value ( i . e . index )

Write a python3 program that implements a hashing function that converts a string to an integer value (i.e. index). Ask user to enter a string. For each character in the string, convert the character to an ASCII value using ord() function (e.g. ord('A') is 65, ord('B') is 66, etc.). Add up all those values and calculate the remainder when divided by 100. That'll be your address.
Find two distinct strings that ends up with the same hash value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!