universal hash functions: definition and example

8
Data Structures Universal Hash Functions: Definition and Example Design and Analysis of Algorithms I

Upload: benard

Post on 19-Feb-2016

72 views

Category:

Documents


5 download

DESCRIPTION

Data Structures. Universal Hash Functions: Definition and Example. Design and Analysis of Algorithms I. Overview of Universal Hashing. Universal Hash Functions. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Universal Hash Functions: Definition and Example

Data Structures

Universal Hash Functions: Definition and ExampleDesign and Analysis

of Algorithms I

Page 2: Universal Hash Functions: Definition and Example

Tim Roughgarden

Overview of Universal Hashing

Page 3: Universal Hash Functions: Definition and Example

Tim Roughgarden

Universal Hash Functions

Page 4: Universal Hash Functions: Definition and Example

Yes, always.

No, never.

Maybe yes, maybe no (depends on the ).

Only if the hash table is implemented using chaining.

Consider a hash function family , where each hash function of maps elements from a universe to one of buckets. Suppose has the following property: for every bucket and key , a fraction of the hash functions in map to . Is universal?

Page 5: Universal Hash Functions: Definition and Example

Tim Roughgarden

Example: Hashing IP Addresses

Page 6: Universal Hash Functions: Definition and Example

Tim Roughgarden

A Universal Hash Function

Page 7: Universal Hash Functions: Definition and Example

Tim Roughgarden

Proof (Part I)

Page 8: Universal Hash Functions: Definition and Example

Tim Roughgarden

Proof (Part II)