Loading topic
linear_search function from the previous chapter. Here we measure how much work that fu3 min readlo/hi/mid version that works on a sorted list. You should also be comfortable reading Big-O notation and know what a logarithm is. Here we work out how many steps that loop takes, and why the count grows s2 min readint means in Java and roughly how many values a 32-bit integer can hold. The topic is one line of code: the line that computes mid. In some languages, the obvious way to write it is wrong.2 min read[lo, hi]. You should also be comfortable with recursion, meaning a function that calls itself on a smaller input. The recursive version makes the same decisions as the loop. The only difference is t3 min read[lo, hi).3 min readlo < hi loop used for lower bound. Up to now, binary search has looked for a value inside a sorted array. Here you search a range of possible answers instead. No ar3 min read