binary search trees ► Search, Insert, Delete are all in Θ(log ) ► But only on average ► Worst tree is completely unbalanced ► Unbalanced tree is the same as an array ► Θ() 0 1 2 0 1 2
AdelsonVelskii, M., & Landis, E. M. (1963). An algorithm for the organization of information. Defense Technical Information Center. ► AVL is a binary search tree ► Each node includes a “balance factor” ► Height balanced tree
► log2 ≤ ℎ < 1.4405 log2 ( + 2) − 1.3277 ► Something to do with Fibonacci and the golden ratio… ► This inequality suggested that search, insert and delete* operations would be in Θ(log ) ► Exact formula is unknown. ► Experiments show an approximation to 1.01 log2 + 0.1 ► So, on average, efficiency is comparable to BST