CS241: Spring 2017 -- Theta, n^2 sorts, and Fibonacci
- Quiz - uh-oh...
- What's pseudo-code?
- problem/algorithm/design (OOD/GUI)/implementation/debugging
- How to determine O(f(n)) for a given algorithm?
- Counting repetitions in bubble sort; how to?
- Two more n^2 sorts: insertion and selection
- the quiz Thurs will be on the three n^2 sorts and the definition of O
- Conway's leftovers
- Running until the state is constant, or alternating
- GUI input/editing of the current Life configuration
- mousePressed and getX(), getY()
- converting pixels to row and columns
- You can trade space for time (and vice-versa). E.g. calculating Fibonacci numbers.
- Problem: evaluate an arbitrary infix expression.