Linear search is the first algorithm most people learn.
Check each item until you find a match.
For one-off lookups, it can beat binary search. Binary search needs sorted data, and sorting costs time.
Sometimes the simplest algorithm is the right one.
