lec0411-pq - Announcements: MP 6 available. Due 4/15,...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Hash table performance: expected # of probes for Find(key) under SUHA Linear probing - Separate chaining - Quadratic and double hashing - successful: unsuccessful: successful: unsuccessful: successful: unsuccessful: ½ (1 + 1/(1- Ћ )) ½ (1 + 1/(1- Ћ )) 2 -ln (1- Ћ )/ Ћ 1/(1- Ћ ) 1 + Ћ /2 1 + Ћ Do not memorize these! Observe: 1. As α increases, running times increase… 2. If α is held constant then running times are constant… Which is better? Big records – Structure speed – What structures do hash tables replace for us? Announcements: MP 6 available. Due 4/15, 11:59p. Today: Secret Mystery Data Structure
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ReHashing: What if the array fills?
Background image of page 2
Secret mystery data structure (supports insert, remove, …)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Priority Queue ADT: insert removeMin implementation
Background image of page 4
6 5 15 16 25 9 14 12 7 11 20 4 Priority Queue: another implementation option
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
(min)Heap: implementation 6 5 15 16 25 9 14 12 7 11 20 4 11 12 14 25 16 20 7 9 15 6 5 4
Background image of page 6
(min)Heap: a quickie… 6 5 15 16 25 9 14 12 7 11 20 4 11 12 14 25 16 20 7 9 15 6 5 4 What is the height of a tree containing n nodes?
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/26/2012 for the course CS CS 225 taught by Professor Heeren during the Spring '09 term at University of Illinois, Urbana Champaign.

Page1 / 12

lec0411-pq - Announcements: MP 6 available. Due 4/15,...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online