π -> 02/24/26: ECS122B-L14
[Lecture Slide Link]
π€ Vocab
β Unit and Larger Context
Small summary
βοΈ -> Scratch Notes
Deterministic vs Randomized
- Randomized - Different outcomes as a result of reliance on randomization
- Complexity on the algorithmβs expected performance
- Randomized Quicksort
- Deterministic - Same output for given input
- Complexity on the worst case analysis
- Deterministic Quicksort
Categories of Randomization
- Las Vegas
- Monte Carlo
Monte Carlo
- Fixed Speed (the time it takes is predictable)
- Random Correctness (subject to probability)
- Prime Detection algorithm: Might say number is prime with 99.9% certainty
- Randomness comes from sampling large search space
- Prime Detection algorithm: Might say number is prime with 99.9% certainty
Las Vegas
- Guaranteed Correctness (the answer is always 100% correct)
- Random Speed (the randomness only affects the cost)
- It may take 1 second today and 1 hour tomorrow on the same data.
- Example: Randomized Quick Sort
π -> Links
Resources
- Put useful links here
Connections
- Link all related words