Probabilistic Analysis and Randomized Algorithms




CS255

Chris Pollett

Jan 28, 2019

Outline

Using Slidy

The Hiring Problem

We will now begin our investigation of randomized algorithms with a toy problem:

Pseudo-Code

Hire-Assistant(n)
1 best := dummy candidate
2 for i := 1 to n
3     do interview of candidate i
4         if i is better than best
5             best := i
6             hire candidate i

Total Cost and Cost of Hiring

Worst-case Analysis

Probabilistic analysis

Randomized algorithms

Distributions

To do probabilistic analysis and to understand randomized algorithms, we need to know a little probability -- so let's review.