-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathText2.txt
16 lines (14 loc) · 1.27 KB
/
Text2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<Plana numero=1>
In computer science, an $AVL $tree is a self-balancing $binary search tree. It was the first such $data structure
to be invented. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any
time they differ by more than one, rebalancing is done to restore this property. Lookup, insertion, and deletion all
take $O(log n) time in both the average and worst cases, where n is the number of nodes in the tree prior to the
operation. Insertions and deletions may require the tree to be rebalanced by one or more tree rotations.
<Plana numero=2>
The AVL tree is named after its two Soviet inventors, Georgy Adelson-Velsky and Evgenii Landis, who published it in
their 1962 paper "An algorithm for the organization of information".
<Plana numero=3>
AVL trees are often compared with red–black trees because both support the same set of operations and take O(log n)
time for the basic operations. For lookup-intensive applications, AVL trees are faster than red–black trees because
they are more strictly balanced.[4] Similar to red–black trees, AVL trees are height-balanced. Both are, in general,
neither weight-balanced nor μ-balanced for any μ≤1⁄2; that is, sibling nodes can have hugely differing numbers of descendants.