_______________ is an exhaustive searching technique, where every element of a given list is compared with the item to be searched.
_______________ is an exhaustive searching technique, where every element of a given list is compared with the item to be searched.
Solution
Linear search checks every element of the list one by one, from the first to the last, comparing each with the item being searched. It stops when a match is found or the list ends, which is why it is called exhaustive. It works on unsorted lists and takes time in the worst case.
Binary search: does not compare every element. It repeatedly halves a sorted list by comparing with the middle element.
Hashing: uses a hash function to compute the position of an item directly, without scanning the list.
Collision: not a searching technique. It is the situation in hashing when two keys map to the same index.
Related questions:
2025: 21 May Shift 1
2026: 31 May Shift 1