Linear search
Search algorithms fall into 2 families. Brute-force search walks the structure element by element: linear search, BFS and DFS. It's simple, always works and needs no preparation, but costs O(n). Adaptive search takes advantage of something about the data: binary search uses order, hashing uses a table, and trees use their shape. It can be O(log n) or O(1), but the data needs preparing first.
Linear search works in many cases and needs no preparation. For a single search, the other methods take longer to prepare the data than linear search takes to walk it. It's fine with little data, where complexity barely shows. And it's fine with data that changes all the time, because there's no structure to maintain.
No search method always wins. The choice depends on how much data there is, how fast you need to answer, how often you search and how often you change it, and whether you need order or ranges. Little data or a single search: linear. Lots of data that barely changes: binary. Instant answers with no order: hash. Lots of changes and ranges: balanced tree.
