Data Structure II
Outline Heap Binary Search Tree Hash Table Binary Indexed Tree Segment Tree
Heap A left-complete binary tree which has every node greater than its two children, if any of them exists Insert Extract-max Heapify Make-heap
Binary Search Tree A binary tree which exhibits the following properties ◦Root > all elements in left subtree ◦Root <= all elements in right subtree Search ◦Most convenient if written recursively Insert – a bit trivial Delete ◦0 children, 1 child, 2 children Balance Tree ◦AVL tree, Red-Black Tree
Hash Table “Dictionary” Search – O(1) Insert – O(1) Delete – O(1) Collision? Hash function Close Addressing ◦Chaining Open Addressing
Binary Indexed Tree Peter Fenwick 92.pdf
Segment Tree nt/2008-5/ doc nt/2008-5/ doc
Thank you! Dinner Time…