Question: USE PYTHON FOR THE CODING PART Given array A = [514, 650, 174, 559, 649, 155, 200, 255, 520, 380). Do the following tasks. a.

USE PYTHON FOR THE CODING PART
Given array A = [514, 650, 174, 559, 649, 155, 200, 255, 520, 380). Do the following tasks. a. Create an auxiliary array AUX. Use the hash function hash(element) to help yourself. Element refers to the elements in array A. def hash (element): index = summation of each digit of (element $ 100) $10 return index [Don't write code for part a. You have to draw and show calculations if there are any] b. Complete the function find(A, AUX, key) that returns the frequency (number times found] if key is found in A else return -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
