SLIDE 1
Hashing and Birthdays
Today’s announcements:
◮ PA2 out, due Nov 1, 23:59 ◮ MT2 Nov 7, 19:00-21:00 WOOD 2
Today’s Plan
◮ Hashing ◮ Birthdays and probability
Warm up: Thinking about AVL trees
◮ AVL trees are binary search trees that allow only slight
imbalance
◮ Worst-case O(log n) time for find, insert, and remove ◮ Elements (even siblings) may be scattered in memory
Could we preserve optimal balance always? 5 3 2 4 7 6
1 / 10