Which technique is used to search the key in a list using remainder method?
Which technique is used to search the key in a list using remainder method?
Solution
Hashing finds the position of a key directly by applying a hash function to it. In the remainder (division) method, the key is divided by the size of the list and the remainder is used as the index, so . The key is then searched for at that index, without scanning the whole list.
For example, with a list of size , the key goes to index .
Option 1: mid-point search is binary search, which repeatedly compares the key with the middle element of a sorted list. It does not use remainders.
Option 2: linear search checks elements one by one from the start, with no calculation of position.
Related questions:
2026: 21 May Shift 1
2026: 23 May Shift 1
2026: 20 May Shift 1
2026: 31 May Shift 1
2026: 24 May Shift 1