Final Exam Formulas & Identities Sheet
Streaming Algorithms & Approximate Counting
Section titled “Streaming Algorithms & Approximate Counting”Morris Counter
Section titled “Morris Counter”Update rule: with probability
Estimate:
Variance:
Morris+ (Parallel Averaging)
Section titled “Morris+ (Parallel Averaging)”Run independent Morris counters, return average:
Success probability: (output within of truth)
Morris++ (Boosted Success Probability)
Section titled “Morris++ (Boosted Success Probability)”Run independent Morris+ instances, return median:
Success probability: (arbitrary confidence)
Total counters needed:
Epsilon-Delta Approximate Median
Section titled “Epsilon-Delta Approximate Median”Problem Statement
Section titled “Problem Statement”Find element with rank between and with confidence .
Algorithm
Section titled “Algorithm”Run independent uniform samples in parallel, return median of samples.
Why It Works
Section titled “Why It Works”By Chernoff bounds, probability that more than half the samples fall in either “bad” tail region is .