Lecture 3: Komplexitätsanalyse 2 Flashcards

(11 cards)

1
Q

Warum wird bei der Effizienzanalyse nur das Verhalten für große n betrachtet?

A

Weil effiziente Algorithmen für große Instanzen relevant sind und konstante Faktoren durch das Maschinenmodell ohnehin abstrahiert werden.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Warum verzichtet man bei der Analyse auf konstante Faktoren?

A

Weil reale Laufzeiten nur bis auf konstante Faktoren abschätzbar sind und das Maschinenmodell diese nicht präzise abbildet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Was bedeutet: 𝑓(𝑛) = Θ(𝑛𝑘), wenn f ein Polynom vom Grad k ist?

A

Dass f(n) asymptotisch genau wie 𝑛𝑘 wächst.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Was ist das Ergebnis des Lemmas über Polynome in Bezug auf die Wachstumsrate?

A

Jedes Polynom vom Grad k mit führendem Koeffizienten 𝑎𝑘 > 0 liegt in Θ(𝑛𝑘).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Wie wird „𝑔(𝑛) ∈ 𝑂(𝑓(𝑛))“ oft notiert?

A

Man schreibt auch: 𝑔(𝑛) = 𝑂(𝑓(𝑛)) , als Platzhaltergleichung.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Was gilt für die Beziehung von O-, Ω- und Θ-Notation?

A

Θ(𝑓(𝑛))=𝑂(𝑓(𝑛)) ∩ Ω(𝑓(𝑛))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Gib ein Beispiel für eine Funktion in 𝑜(𝑛).

A

logn ∈ o(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Gib ein Beispiel für eine Funktion in 𝜔(𝑛³).

A

n^5 ∈ ω(n³)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

warum ist 𝑛³+𝑛 in 𝑂(𝑛³)

A

𝑛³+𝑛 = 𝑛³ + 𝑜(𝑛) = (1 + 𝑜(1)) 𝑛³ = 𝑂(𝑛³)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Wie wirken sich verschiedene Wachstumsraten in der Praxis aus?

A

Exponentielles oder faktorielles Wachstum führt schnell zu unpraktikabel langen Laufzeiten selbst bei kleinen n.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In welche “Laufzeitgruppen” Wird standartmäßig eingeordnet?

A

2^𝑛,
𝑛²,
𝑛 ln 𝑛,
𝑛,
ln 𝑛

How well did you know this?
1
Not at all
2
3
4
5
Perfectly