
1
Digital Search Trees & Binary Tries
โขAnalog of radix sort to searching.
โขKeys are binary bit strings.
๎Fixed length โ 0110, 0010, 1010, 1011.
๎Variable length โ 01, 00, 101, 1011.
โขApplication โ IP routing, packet classification,
firewalls.
๎IPv4 โ 32 bit IP address.
๎IPv6 โ 128 bit IP address.
Digital Search Tree
โขAssume fixed number of bits.
โขNot empty =>
๎Root contains one dictionary pair (any pair).
๎All remaining pairs whose key begins with a 0
are in the left subtree.
๎All remaining pairs whose key begins with a 1
are in the right subtree.
๎Left and right subtrees are digital search trees
on remaining bits.