Algorithmes d'arbreAdvanced

Arbre AVL

Premier arbre binaire de recherche auto-équilibré inventé en 1962 par Adelson-Velsky et Landis. Maintient l'équilibre de hauteur par des rotations, garantissant des opérations O(log n). Un équilibrage plus strict que les arbres rouge-noir le rend idéal pour les applications à forte consultation comme les bases de données et les systèmes de fichiers.

#tree#self-balancing#rotation#binary-search-tree

Complexity Analysis

Time (Average)

O(log n)

Expected case performance

Space

O(n)

Memory requirements

Time (Best)

O(log n)

Best case performance

Time (Worst)

O(log n)

Worst case performance

📚 CLRS Reference

Introduction to AlgorithmsChapter 13Section Notes

Watch rotations maintain balance!

Rotation Types

  • LL: Right rotation (left-heavy)
  • RR: Left rotation (right-heavy)
  • LR: Left-Right rotation
  • RL: Right-Left rotation
  • • Balance factor: height(left) - height(right)
  • • O(log n) for insert, delete, search
Step: 1 / 0
500ms
SlowFast
Keyboard Shortcuts
Space Play/Pause StepR Reset1-4 Speed

Real-time Statistics

Algorithm Performance Metrics

Progress0%
Comparisons
0
Swaps
0
Array Accesses
0
Steps
1/ 0

Algorithm Visualization

Step 1 of 0

Initialize array to begin

Default
Comparing
Swapped
Sorted

Code Execution

Currently executing
Previously executed

Implementation

AVL Tree - Algorithm Vision | Algorithm Vision