cs230 Lecture Notes Week 2, Friday For today you should have read Chapters 4 and 5 and started homework 1. For next time you should continue with Homework 1. Performance analysis review --------------------------- How long does it take to do a linear search? How long does it take to do a bisection search? Which is bigger, n/2 or log2 n? What about (n/2) and (100000 * log2 n)? Shuffling --------- Algorithm The way humans do things is often dictated by real-world factors that do not apply to programs. Beware misleading analogies. How can we express algorithms? One option, pseudocode: for (int i=0; i