\documentclass[12pt]{article} \usepackage{wide,me} \parindent0pt

perfect hash families

Last time, a 2-universal hash family the is

Improve

Alternative try: use more space:

Two level hashing solves problem

Derandomization

Cuckoo Hashing

Uniform Hashing Assumption:

Suppose your $n$ items all make their two random choices and then you place them carefully?

Analysis

What about insertion?

Theory of Random Graphs

Two mostly-equivalent models:

Random graph theory sledgehammer

Basic analysis. Probability of a cycle?

Fancier analysis: Probability of a bicycle

Canonical shapes

Let's count expected figure-eights.

Analysis for dumbells and thetas is the same: $O(1/n)$

Note: not our usual “with high probability” result

Size of components via “exposure process”

Random graph theory is broad

Self collisions

Duplicate edges?

Consistent Hashing

Motivation

Outline

Intuition:

Implementation

Analysis

Max homestead size $O((\log m)/m)$

Conclude load

Can we do better?

We assumed random

What about flash crowds for one page?