Linear search scans a collection sequentially, stopping when it finds the target or reaches the end. For an array of length n, its worst-case and average-case time complexity are O(n). section 7.2
Sequential array scan
A find function checks each value in order and returns true immediately on a match; otherwise, it returns false after the scan finishes. section 7.2
Figure 7.1 Illustration of algorithmic complexity in big O notation for constant time 𝑂(1), logarithmic time 𝑂(log𝑛), linear time 𝑂(𝑛), and quadratic time 𝑂(𝑛2)
Compare linear growth with constant, logarithmic, and quadratic algorithmic growth as input size increases. section 7.2




