GO-V.ORG
As seen in

AVL tree

In computer science, an AVL tree (named after inventors Adelson-Velsky and Landis) is a self-balancing binary search tree.[src] In an AVL tree, the heights of the two child subtrees of any node differ by not more than one; if at any time they differ by more than one, rebalancing is done to restore this property.[src] Lookup, insertion, and deletion all take time in both the average and worst cases, where n is the number of nodes in the tree prior to the operation.[src] Insertions and deletions may require the tree to be rebalanced by one or more tree rotations.[src] 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".[src] It is the first self-balancing binary search tree data structure to be invented.[src] AVL trees are often compared with red–black trees because both support the same set of operations and take \text{O}(\log n) time for the basic operations.[src] For lookup-intensive applications, AVL trees are faster than red–black trees because they are more strictly balanced.[src] Similar to red–black trees, AVL trees are height-balanced.[src] Both are, in general, neither weight-balanced nor \mu -balanced for any \mu\leq\tfrac{1}{2} ; that is, sibling nodes can have hugely differing numbers of descendants.[src]

In computer science, an AVL tree (named after inventors Adelson-Velsky and Landis) is a self-balancing binary search tree.[src] In an AVL tree, the heights of the two child subtrees of any node differ by not more than one; if at any time they differ by more than one, rebalancing is done to restore this property.[src] Lookup, insertion, and deletion all take time in both the average and worst cases, where n is the number of nodes in the tree prior to the operation.[src] Insertions and deletions may require the tree to be rebalanced by one or more tree rotations.[src] 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".[src] It is the first self-balancing binary search tree data structure to be invented.[src] AVL trees are often compared with red–black trees because both support the same set of operations and take \text{O}(\log n) time for the basic operations.[src] For lookup-intensive applications, AVL trees are faster than red–black trees because they are more strictly balanced.[src] Similar to red–black trees, AVL trees are height-balanced.[src] Both are, in general, neither weight-balanced nor \mu -balanced for any \mu\leq\tfrac{1}{2} ; but there are RB trees which are not AVL balanced.[src] For maintaining the AVL (or RB) tree's invariants, rotations play an important role.[src] In the worst case, even without rotations, AVL or RB insertions or deletions require inspections and/or updates to AVL balance factors (or RB colors).[src] RB insertions and deletions and AVL insertions require from zero to three tail-recursive rotations and run in amortized time, thus equally constant on average.[src] AVL deletions requiring rotations in the worst case are also on average.[src] RB trees require storing one bit of information (the color) in each node, while AVL trees mostly use two bits for the balance factor, although, when stored at the children, one bit with meaning «lower than sibling» suffices.[src] The bigger difference between the two data structures is their height limit.[src] For a tree of size an AVL tree's height is at most \begin{array}{ll} h & \leqq \; c \log_2 (n + d) + b \\ & where \varphi := \tfrac{1+\sqrt 5}2 \approx 1.618   the golden ratio, c := \tfrac 1{\log_2 \varphi} \approx 1.440,   b := \tfrac{c}2 \log_2 5 - 2 \approx \; -0.328, and  d:=1+\tfrac{1}{\varphi^4\sqrt{5}} \approx 1.065 .[src] a RB tree's height is at most \begin{array}{ll} h & \leqq \; 2\log_2(n+1) \end{array}  .[src] AVL trees are more rigidly balanced than RB trees with an asymptotic relation AVL/RB ≈0.720 of the maximal heights.[src] For insertions and deletions, Ben Pfaff shows in 79 measurements a relation of AVL/RB between 0.677 and 1.077 with median ≈0.947 and geometric mean ≈0.910.[src] ==See also== WAVL tree Weight-balanced tree Splay tree Scapegoat tree B-tree T-tree List of data structures ==References== ==Further reading== Donald Knuth.[src] The Art of Computer Programming, Volume 3: Sorting and Searching, Third Edition.[src] Addison-Wesley, 1997.[src] .[src] Pages 458–475 of section 6.2.3: Balanced Trees.[src] .[src] ==External links==[src]

37 sentences · 37 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"AVL tree." encyclopegia.org, 2026, https://encyclopegia.org/wiki/avl-tree. Accessed 03 December 2026.

Chicago

"AVL tree." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/avl-tree.

APA

encyclopegia.org. (2026). AVL tree. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/avl-tree

Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date1962Wikipedia

Related articles

Ti -Tree

stub · references available

Siberian Tree Frog

stub · references available

Olive-tree Warbler

stub · references available

Tree Pipit

stub · references available

Matschie's tree-kangaroo

stub · references available

phylogenetic tree

stub · references available

Gray-bellied pencil-tailed tree-mouse

stub · references available

Pallid Atlantic Tree-rat

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1361768886 · 0.5 · snapshot enwiki-001361768886

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.