Lecture 4 Flashcards
1
Q
What is a randomized algorithm?
A
2
Q
What are two types of randomized algorithms?
A
3
Q
What is the worst-case runtime for randomized algorithms?
A
4
Q
What is the expected runtime?
A
5
Q
What is the key idea of BogoSort?
A
6
Q
What is the pseudocode of BogoSort?
A
7
Q
What is the worst-case runtime of BogoSort?
A
8
Q
What is the expected runtime of BogoSort?
A
9
Q
How does QuickSort work?
A
10
Q
What is the pseudocode of QuickSort?
A
11
Q
What are the differences between QuickSort and MergeSort?
A
12
Q
How does the Partition part of QuickSort work?
A
13
Q
What is the Pseudocode of the partition part of QuickSort?
A
14
Q
What is the recurrence of QuickSort?
A
15
Q
What is the worst-case runtime of QuickSort?
A