Lecture 4 Flashcards
What is a randomized algorithm?

What are two types of randomized algorithms?

What is the worst-case runtime for randomized algorithms?

What is the expected runtime?

What is the key idea of BogoSort?

What is the pseudocode of BogoSort?

What is the worst-case runtime of BogoSort?

What is the expected runtime of BogoSort?

How does QuickSort work?

What is the pseudocode of QuickSort?

What are the differences between QuickSort and MergeSort?

How does the Partition part of QuickSort work?

What is the Pseudocode of the partition part of QuickSort?

What is the recurrence of QuickSort?

What is the worst-case runtime of QuickSort?

What is the best-case runtime of QuickSort?

How is the expected runtime of QuickSort derived?

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