Case Studies: Searching
Comparing sequential search, sentinel search, and binary search, including correctness pitfalls and when sorting pays off.
Comparing sequential search, sentinel search, and binary search, including correctness pitfalls and when sorting pays off.
Exercises with solutions on specifications, data structures, empirical timing, complexity analysis, loops, and searching.
Formal proofs for Chapter 1: Big-O rules, logarithm growth, linear pairwise product, and correctness and cost of searching.