Algorithms Theory Algorithms Theory 10 G d Al ith 10 – Greedy Algorithms
- Dr. Alexander Souza
Winter term 11/12
Algorithms Theory Algorithms Theory 10 10 Greedy Algorithms G d - - PowerPoint PPT Presentation
Algorithms Theory Algorithms Theory 10 10 Greedy Algorithms G d Al ith Dr. Alexander Souza Winter term 11/12 Greedy algorithms 1 1. Introductory remarks Introductory remarks 2. Basic examples: The coin-changing problem
Winter term 11/12
2 Winter term 11/12
3 Winter term 11/12
4 Winter term 11/12
5 Winter term 11/12
6 Winter term 11/12
7 Winter term 11/12
8 Winter term 11/12
9 Winter term 11/12
1 2 3 n 2 n 1 n
1 2 3 n – 2 n – 1 n 1 2 3 n – 2 n – 1 n
10 Winter term 11/12
1 2 3 n 2 n 1 n
11 Winter term 11/12
12 Winter term 11/12
1 3 2 si fi
1 1 4 5
1 1 4 4 5 6
1 1 4 4 8 7
1 1 10 4 4 8 9
1 1 10 4 4 8 8 11
13 Winter term 11/12
1 1 4 4 8 8 11
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
1
14 Winter term 11/12
15 Winter term 11/12
i2
16 Winter term 11/12
17 Winter term 11/12
18 Winter term 11/12
i} i 1
i
19 Winter term 11/12