SLIDE 1
1
CSE 417: Algorithms and Computational Complexity
4: Dynamic Programming, I Fibonacci Winter 2006 Lecture 12
- W. L. Ruzzo
CSE 417: Algorithms and Computational Complexity 4: Dynamic - - PowerPoint PPT Presentation
CSE 417: Algorithms and Computational Complexity 4: Dynamic Programming, I Fibonacci Winter 2006 Lecture 12 W. L. Ruzzo 1 Some Algorithm Design Techniques, I General overall idea Reduce solving a problem to a smaller problem or
1
2
– e.g. closest pair in TSP search
3
Quicksort (kind of)
4
5
– Webster’s New World Dictionary
6
7
F (6) F (5) F (4) F (3) F (4) F (2) F (2) F (3) F (1) F (0) 1 F (1)
8
F (6) F (2) F (5) F (4) F (3) F (4) F (2) F (2) F (3) F (3) F (1) F (0) 1 F (0) 1 F (1) F (1) F (0) 1 F (1) F (2) F (1) 1 F (0) 1 F (2) F (1) 1 F (0) 1 F (1) 1 F (1)
9
(top-down → bottom-up)
10
11
12