Komplexitäten Flashcards

1
Q

konstant

A
  • Klasse: 1
  • Code: a = b + c
  • Beschreibung: einfache Anweisung
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

logarithmisch

A
  • Klasse: log N
  • Code: binäre Suche
  • Beschreibung: iteratives Halbieren
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

linear

A
  • Klasse: N
  • Code:
for i in range(N):
    print(i)
  • Beschreibung: einfache Schleife
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

quasilinear

A
  • Klasse: N log N
  • Code: Mergesort
  • Beschreibung: “divide and conquer”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

quadratisch

A
  • Klasse: N^2
  • Code:
for i in range(N):
    for j in range(N):
  • Beschreibung: doppelte Schleife
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

kubisch

A
  • Klasse: N^3
  • Code:
for i in range(N):
    for j in range(N):
        for k in range(N):
  • Beschreibung: dreifache Schleife
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

exponentiell

A
  • Klasse: 2^N
  • Code: siehe Hanoi
  • Beschreibung: Verdoppelung der Arbeit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly