Kjøretider Flashcards
1
Q
Insertion Sort Best-case
A
Theta(n)
2
Q
Insertion Sort Average-Case
A
Theta(n^2)
3
Q
Insertion sort worst-case
A
Theta(n^2)
4
Q
Merge sort best-case
A
Theta(nlgn)
5
Q
Merge sort average-case
A
Theta(n^2)
6
Q
Merge sort worst-case
A
Theta(nlgn)
7
Q
Selection sort best-case
A
Theta(n^2)
8
Q
Selection sort average case
A
Theta(n^2)
9
Q
Selection sort worst-case
A
Theta(n^2)
10
Q
Quicksort best-case
A
Theta(nlgn)
11
Q
Quicksort expected
A
Theta(nlgn)
12
Q
Quicksort worstcase
A
Theta(n^2)
13
Q
PARTITION
A
O(n)
14
Q
Randomized-quicksort best case
A
Theta(nlgn)
15
Q
Randomized Quicksort average
A
Theta(nlgn)
16
Q
Radomized quicksort worst case
A
Theta(n^2)
17
Q
Binærsøk best case
A
O(1)
18
Q
Binærsøk average
A
O(lgn)
19
Q
Binærsøk worstcase
A
O(lgn)
20
Q
«Brute force» average
A
O(n)