Next:
Hash Tables
Better Solution
Direct-Address Tables
Operations
What if the keys are not unique?
Hash Tables
Analysis
Example
Problem
Collision Resolution by Chaining
Analysis of Chaining
Question:
Hash Functions
Division Method
Choice of m
Example
Multiplication Method
Universal Hashing
Universal Hash Functions
Open Addressing
Pseudocode
Pseudocode
Generating Probe Sequence
Linear Probing
Problem with Linear Probing:
Quadratic Probing
Double Hashing
Example
Analysis of Open Addressing
Theorem 12.5
Corollary 12.6
Theorem 12.7
Applications
Next: