Streaks, Online Hiring Problem, Start Threads




CS255

Chris Pollett

Feb 5, 2018

Outline

Introduction

Streaks

Suppose you flip a fair coin n times. What is the longest streak of consecutive heads you expect to see?

Upper Bound on Streaks

Bounding `E[L]`

Using Indicator Variables for Lower Bound Intuition

Quiz

Which of the following statements is true?

  1. Two events `A, B` are independent if `Pr{A cap B} = 0`.
  2. Assuming all birthdays are equally likely, and the number of distinct choices of birthday is 365, the probability that two people share a birthday is 1/(365).
  3. The Bernoulli distribution was described by the formula `Pr{X=k} = (1- 1/b)^(k-1) cdot 1/b`.

The On-Line Hiring Problem

More on the On-line Hiring Problem

Still More on the On-Line hiring Problem

Multithreaded Algorithms

Dynamic Multithreaded Programming