Streaks, Online Hiring Problem, Start Threads




CS255

Chris Pollett

Feb 6, 2019

Outline

Introduction

Third Ball and Bin Question

How many balls must one toss on average, until every bin contains at least one ball?

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]`

In-Class Exercise

Using Indicator Variables for Lower Bound Intuition

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