AVL Tree Assignment
AVL Tree Assignment
AVL Tree Assignment
Adelson-Velskii and Landis were the two persons who developed this
technique that is why it was named after their names (AVL). They
developed this technique to make tree balanced. AVL tree is almost
identical to a BST but the following are the two differences:-
1) - At most the height of left and right sub tree may differ by 1.
2) - Empty tree’s is defined to be -1.
2-3 Tree
2-3-4 Tree
Furthermore they are an isometry of red black trees. It means that red-
black trees and 2-3-4 tress are equivalent data structures. So, for every
2-3-4-tree at there is one re-black-tree exists with having data elements
in the same order.
Moreover, insertion and deletion operations on 2-3-4 trees that cause
node expansions, splits and merges are equivalent to the color-flipping
and rotations in red-black trees. Introductions to red-black trees usually
introduce 2-3-4 trees first, because they are conceptually simpler. 2-3-4
trees, however, can be difficult to implement in most programming
languages because of the large number of special cases involved in
operations on the tree. Red-black trees are simpler to implement, so
tend to be used instead.
Skip List
A skip list is a data structure for storing a sorted list of items, using a
hierarchy of linked lists that connect increasingly sparse subsequences
of the items. These auxiliary lists allow item lookup with efficiency
comparable to balanced binary search trees (that is, with number of
probes proportional to log n instead of n).
Each link of the sparser lists skips over many items of the full list in one
step, hence the structure's name. These forward links may be added in
a randomized way with a geometric / negative binomial distribution [1].
Insert, search and delete operations are performed in logarithmic
expected time. The links may also be added in a non-probabilistic way
so as to guarantee amortized (rather than merely expected) logarithmic
cost.