lec29 - Higher Order Tries Key = Social Security Number 9...

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

View Full Document Right Arrow Icon
Higher Order Tries Key = Social Security Number. 441-12-1135 9 decimal digits. 10 -way trie (order 10 trie). 0 1 2 3 4 5 6 7 8 9 Height <= 10 .
Background image of page 1

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

View Full Document Right Arrow Icon
Social Security Trie 10 -way trie Height <= 10 . Search => <= 9 branches on digits plus 1 compare. 100 -way trie 441-12-1135 Height <= 6 . Search => <= 5 branches on digits plus 1 compare.
Background image of page 2
Red-black tree Height <= 2log 2 10 9 ~ 60 . Search => <= 60 compares of 9 digit numbers. AVL tree Height <= 1.44log 2 10 9 ~ 40 . Search => <= 40 compares of 9 digit numbers. Best binary tree. Height = log 2 10 9 ~ 30 .
Background image of page 3

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

View Full Document Right Arrow Icon
Compressed Social Security Trie #ptr 0 1 2 3 4 5 6 7 8 9 char# char# = character/digit used for branching. Equivalent to bit# field of compressed binary trie. #ptr = # of nonnull pointers in the node.
Background image of page 4
Insert 012345678 . 012345678 Insert 015234567 . Null pointer fields not shown.
Background image of page 5

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

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 26

lec29 - Higher Order Tries Key = Social Security Number 9...

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

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