Array Search
Finding a value, or the k-th smallest, in an array
A linear scan checks every element in time, while binary search uses a sorted array to halve the search space each step, finding a value in . Quickselect borrows quicksort’s partitioning to find the -th smallest element in expected time without sorting the whole array.