Every element of data structure has an address and a key associated with it. a search mechanism deals with two it more values assigned to the same address by using the key. what is this search mechanism?
Answers
Answered by
13
Answer:
The answer is Hash Coded Search
Explanation:
Answered by
0
A search method known as hash coding, links an address to a key value and provides a way to handle two or more values that are linked to the same address.
- A data structure known as a hash table (also referred to as a hash map) implements an abstract data type known as an associative array that can map keys to values.
- If no existing record has a hash function value equal to the entry's index, the entry in the hash table is NIL. A hash table uses a hash function to calculate an index into each bucket or slot in order to locate the desired value from the array.
- Every time an element needs to be searched, the hash code of the key passed should be calculated and used as an index in the array to locate the element. The use of linear probing to advance the element if it cannot be located at the computed hash code is done.
For more information on Hash Codes and Searching, refer to these answers:
https://brainly.in/question/41760068
https://brainly.in/question/10058242
#SPJ3
Similar questions