In-Class Examples/Links
Algorithm Analysis (Ch. 2)
-
bin.cpp - converting a decimal integer to binary recursively.
-
tower.cpp - Tower of Hanoi problem, the classic recursive problem.
-
fact.cpp - recursive factorial problem and empirical analysis.
-
fib.cpp - comparing
performance of computing Fibonacci numbers
recursively and iteratively.
-
fibgraph.jpg - graph of empirical results of running fib.cpp.
Brute Force Algorithms (sorting and more) (Ch. 3)
Decrease-n-Conquer (Ch. 4)