Lecture 4 Flashcards

1
Q

What is a randomized algorithm?

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

What are two types of randomized algorithms?

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

What is the worst-case runtime for randomized algorithms?

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

What is the expected runtime?

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

What is the key idea of BogoSort?

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

What is the pseudocode of BogoSort?

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

What is the worst-case runtime of BogoSort?

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

What is the expected runtime of BogoSort?

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

How does QuickSort work?

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

What is the pseudocode of QuickSort?

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

What are the differences between QuickSort and MergeSort?

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

How does the Partition part of QuickSort work?

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

What is the Pseudocode of the partition part of QuickSort?

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

What is the recurrence of QuickSort?

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

What is the worst-case runtime of QuickSort?

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

What is the best-case runtime of QuickSort?

A
17
Q

How is the expected runtime of QuickSort derived?

A
18
Q

What is the expected, worst, and best-case runtime of QuickSort?

A