3/19/2020
Randomness in Computing
LECTURE 15
Last time
- Poisson approximation
- Application: max load
- Application: Coupon Collector
Today
- Hashing
Sofya Raskhodnikova;Randomness in Computing
Randomness in Computing L ECTURE 15 Last time Poisson approximation - - PowerPoint PPT Presentation
Randomness in Computing L ECTURE 15 Last time Poisson approximation Application: max load Application: Coupon Collector Today Hashing 3/19/2020 Sofya Raskhodnikova;Randomness in Computing Extra slide for notes 3/19/2020 Sofya
3/19/2020
Sofya Raskhodnikova;Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
Search time: O(log ๐), Space: O(๐)
Search time: O(1), Space: O(|๐ฝ|)
same bin are chained into a linked list.
To construct the table hash all elements of ๐ To search for word ๐ check if ๐ฅ is in bin โ(๐ฅ) Desiderata for ๐:
โฎ โฎ 1 2
๐
Elements of ๐ป
ln ๐ ln ln ๐
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
โ They canโt collide after performing mod ๐. โ So, they must map to different values ๐ค1, ๐ค2 at this point โ Each (๐ค1, ๐ค2) corresponds to a unique pair (๐, ๐). โ So it suffices to count the number of pairs (๐ค1, ๐ค2) with ๐ค1 โ ๐ค2, but ๐ค1 = ๐ค2 ๐๐๐ ๐
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing
3/19/2020
Sofya Raskhodnikova; Randomness in Computing