Handout - Institut für Theoretische Informatik - Technische ...
Handout - Institut für Theoretische Informatik - Technische ... Handout - Institut für Theoretische Informatik - Technische ...
6. Komplexität von Algorithmen 6.11 Approximation von Optimierungsproblemen Ein typischer Laufzeitplan hat etwa die Form 5 4 Prozessor 3 2 1 0 0 20 40 60 Zeit Verschieben der letzten Aufgabe von Prozessor 4 nach Prozessor 1 verbessert in diesem Fall die Gesamtlaufzeit. Jürgen Koslowski (TU-BS) Theoretische Informatik 2 SS 2012 188 / 215
6. Komplexität von Algorithmen 6.11 Approximation von Optimierungsproblemen Idee für einen SiT(k)-Algorithmus: die Aufgaben gemäß Zeitbedarf absteigend sortieren, in dieser Reihenfolge so verteilen, daß Prozessoren mit der bisher geringsten Belastung bevorzugt werden. Algorithmus für SiT(k) Gegeben: t ∈ N n ; Gesucht: Schedule n S(t) k, der die Gesamtlaufzeit minimiert. 1: t absteigend sortieren; 2: for m < k do 3: T m = 0 ; 4: end for 5: for i < n do 6: wähle j < k mit T j = min m
- Seite 137 und 138: 6. Komplexität von Algorithmen 6.4
- Seite 139 und 140: 6. Komplexität von Algorithmen 6.4
- Seite 141 und 142: 6. Komplexität von Algorithmen 6.4
- Seite 143 und 144: 6. Komplexität von Algorithmen 6.5
- Seite 145 und 146: 6. Komplexität von Algorithmen 6.5
- Seite 147 und 148: 6. Komplexität von Algorithmen 6.6
- Seite 149 und 150: 6. Komplexität von Algorithmen 6.6
- Seite 151 und 152: 6. Komplexität von Algorithmen 6.7
- Seite 153 und 154: 6. Komplexität von Algorithmen 6.7
- Seite 155 und 156: 6. Komplexität von Algorithmen 6.7
- Seite 157 und 158: 6. Komplexität von Algorithmen 6.7
- Seite 159 und 160: 6. Komplexität von Algorithmen 6.7
- Seite 161 und 162: 6. Komplexität von Algorithmen 6.8
- Seite 163 und 164: 6. Komplexität von Algorithmen 6.8
- Seite 165 und 166: 6. Komplexität von Algorithmen 6.8
- Seite 167 und 168: 6. Komplexität von Algorithmen 6.8
- Seite 169 und 170: 6. Komplexität von Algorithmen 6.9
- Seite 171 und 172: 6. Komplexität von Algorithmen 6.9
- Seite 173 und 174: 6. Komplexität von Algorithmen 6.1
- Seite 175 und 176: 6. Komplexität von Algorithmen 6.1
- Seite 177 und 178: 6. Komplexität von Algorithmen 6.1
- Seite 179 und 180: 6. Komplexität von Algorithmen 6.1
- Seite 181 und 182: 6. Komplexität von Algorithmen 6.1
- Seite 183 und 184: 6. Komplexität von Algorithmen 6.1
- Seite 185 und 186: 6. Komplexität von Algorithmen 6.1
- Seite 187: 6. Komplexität von Algorithmen 6.1
- Seite 191 und 192: 6. Komplexität von Algorithmen 6.1
- Seite 193 und 194: 6. Komplexität von Algorithmen 6.1
- Seite 195 und 196: 6. Komplexität von Algorithmen 6.1
- Seite 197 und 198: 6. Komplexität von Algorithmen 6.1
- Seite 199 und 200: 6. Komplexität von Algorithmen 6.1
- Seite 201 und 202: 6. Komplexität von Algorithmen 6.1
- Seite 203 und 204: 6. Komplexität von Algorithmen 6.1
- Seite 205 und 206: 6. Komplexität von Algorithmen 6.1
- Seite 207 und 208: 6. Komplexität von Algorithmen 6.1
- Seite 209 und 210: 6. Komplexität von Algorithmen 6.1
- Seite 211 und 212: 6. Komplexität von Algorithmen 6.1
- Seite 213 und 214: 6. Komplexität von Algorithmen 6.1
- Seite 215: 6. Komplexität von Algorithmen 6.1
6. Komplexität von Algorithmen 6.11 Approximation von Optimierungsproblemen<br />
Ein typischer Laufzeitplan hat etwa die Form<br />
5<br />
4<br />
Prozessor<br />
3<br />
2<br />
1<br />
0<br />
0 20 40 60<br />
Zeit<br />
Verschieben der letzten Aufgabe von Prozessor 4 nach Prozessor 1<br />
verbessert in diesem Fall die Gesamtlaufzeit.<br />
Jürgen Koslowski (TU-BS) <strong>Theoretische</strong> <strong>Informatik</strong> 2 SS 2012 188 / 215