SlideShare a Scribd company logo
Randomized Algorithms
CS648
Lecture 11
Hashing - I
1
Problem Definition
Solutions
Hashing
Collision
Collision
Hashing
WHY DOES HASHING WORK SO
WELL IN PRACTICE ?
Why does hashing work so well in Practice ?
Why does hashing work so well in Practice ?
1
2
m
Why does hashing work so well in Practice ?
1
2
m
Why does hashing work so well in Practice ?
HOW TO ACHIEVE WORST CASE
O(1) SEARCH TIME
Key idea to achieve worst case O(1) search time
The notion of goodness is captured
formally by Universal hash family in
the following slide.
UNIVERSAL HASH FAMILY
Universal Hash Family
Universal Hash Family
This looks complicated. In the next
class we shall show that it is very
natural and intuitive. For today’s
lecture, you don’t need it 
STATIC HASHING
WORST CASE O(1) SEARCH TIME
The Journey
Lecture 11-cs648-2013 Randomized Algorithms
Lecture 11-cs648-2013 Randomized Algorithms
Use Markov’s Inequality to
bound it.
Lecture 11-cs648-2013 Randomized Algorithms
Lecture 11-cs648-2013 Randomized Algorithms

More Related Content

PPTX
Lecture 4-cs648 Randomized Algorithms
PPTX
Lecture 5-cs648 Randomized Algorithms
PPTX
Lecture 18-cs648
PPTX
Lecture 17-cs648
PPTX
Lecture 3-cs648 Randomized Algorithms
PPTX
Lecture 14-cs648-2013
PPTX
Lecture 16
PPTX
Lecture 10-cs648=2013 Randomized Algorithms
Lecture 4-cs648 Randomized Algorithms
Lecture 5-cs648 Randomized Algorithms
Lecture 18-cs648
Lecture 17-cs648
Lecture 3-cs648 Randomized Algorithms
Lecture 14-cs648-2013
Lecture 16
Lecture 10-cs648=2013 Randomized Algorithms

More from Anshul Yadav (9)

PPTX
Lecture 19-cs648
PPTX
Lecture 13-cs648
PPTX
Theoretical assign-2-hints
PPTX
Lecture 12-cs648-2013 Randomized Algorithms
PPTX
Lecture 9-cs648-2013 Randomized Algorithms
PPTX
Lecture 6-cs648 Randomized Algorithms
PPTX
Lecture 2-cs648 Randomized Algorithms
PPTX
Lecture 7-cs648 Randomized Algorithms
PPTX
Lecture 1-cs648
Lecture 19-cs648
Lecture 13-cs648
Theoretical assign-2-hints
Lecture 12-cs648-2013 Randomized Algorithms
Lecture 9-cs648-2013 Randomized Algorithms
Lecture 6-cs648 Randomized Algorithms
Lecture 2-cs648 Randomized Algorithms
Lecture 7-cs648 Randomized Algorithms
Lecture 1-cs648
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
20250228 LYD VKU AI Blended-Learning.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation
A comparative analysis of optical character recognition models for extracting...
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
Ad

Lecture 11-cs648-2013 Randomized Algorithms