Agenda

  1. Warm-up: Name That Error — an index one past the end
  2. Find one name among ten, then ten thousand, then ten million — by hand first, on paper, and only then in code
  3. Compare and name it: Searching — linear and binary, and the condition binary quietly depends on
  4. Read and change: Searching and Timing It
  5. Practise: Searching Practice

Things to do before our next class

  • Finish Searching Practice.
  • Journal: the comparisons your binary search needed and the ones your linear search needed, on exactly the same data.