Question: Write a python 3 program that implements a hashing function that converts a string to an integer value ( i . e . index )
Write a python program that implements a hashing function that converts a string to an integer value ie index Ask user to enter a string. For each character in the string, convert the character to an ASCII value using ord function eg ordA is ordB is etc. Add up all those values and calculate the remainder when divided by 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
