Universal Hash Functions: Performance Guarantees (Chaining)

11
Data Structures Universal Hash Functions: Performance Guarantees (Chaining) Design and Analysis of Algorithms I

description

Data Structures. Universal Hash Functions: Performance Guarantees (Chaining). Design and Analysis of Algorithms I. Overview of Universal Hashing. Universal Hash Functions. Chaining: Constant-Time Guarantee. Proof (Part I). A General Decomposition Principle. Proof (Part II). - PowerPoint PPT Presentation

Transcript of Universal Hash Functions: Performance Guarantees (Chaining)

Page 1: Universal Hash Functions: Performance Guarantees (Chaining)

Data Structures

Universal Hash Functions: Performance Guarantees (Chaining)Design and Analysis

of Algorithms I

Page 2: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Overview of Universal Hashing

Page 3: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Universal Hash Functions

Page 4: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Chaining: Constant-Time Guarantee

Page 5: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Proof (Part I)

Page 6: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

A General Decomposition Principle

Page 7: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Proof (Part II)

Page 8: Universal Hash Functions: Performance Guarantees (Chaining)

Pr [h (𝑦 )=0]Pr [h (𝑦 )≠𝑥 ]Pr [h (𝑦 )=h(𝑥)]

Pr [h ( 𝑦 )≠h (𝑥)]

What does evaluate to?

Page 9: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Proof (Part II)

Page 10: Universal Hash Functions: Performance Guarantees (Chaining)

1/𝑛2

1/𝑛❑

1/21−1/𝑛

Which of the following is the smallest valid upper bound on ?

Page 11: Universal Hash Functions: Performance Guarantees (Chaining)

Tim Roughgarden

Proof (Part II)