当前位置:网站首页>Balanced binary tree (AVL)~
Balanced binary tree (AVL)~
2022-07-26 05:45:00 【[email protected]】
Balanced binary tree is actually an upgraded version of binary sort tree , It improves the efficiency of query
- Balance factor : The difference between the height of the left subtree minus the height of the right subtree , There are positive, negative and zero
- Balanced binary trees : The absolute value of the balance factor of each node is not greater than 1
a key : The adjustment of balanced binary tree
- LR, Intermediate nodes L, Root node R
- RL, Intermediate nodes R, Root node L
- LL, Root node R
- RR, Root node L
eg: Sequence by keyword {16,3,7,11,9,26,18,14,15} Build a tree AVL Trees ( Balanced binary trees ), After the construction is completed, delete the nodes in turn 16、15、11. Give the detailed operation process , Mark the balance factor above the node in the title , Use the dotted line to frame the 3 Nodes .
answer :
Before deleting 
After deleting 
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/207/202207260542336015.html
边栏推荐
- C language explanation series -- understanding of functions (3) formal parameters, arguments, nested calls and chain access
- [MySQL must know and know] time function number function string function condition judgment
- Mba-day29 arithmetic - preliminary understanding of absolute value
- LNMP architecture
- Two auxiliary functions of integral Mall for business user operation
- Hack the box -sql injection fundamentals module detailed Chinese tutorial
- High frequency electronic circuit review examination questions and answers
- Redis 官方可视化工具,高颜值,功能真心强大!
- Redis发布订阅
- Unity Profiler
猜你喜欢
随机推荐
Hack The Box - Introduction to Networking Module详细讲解中文教程
Select sort / insert sort / bubble sort
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(十))
Motor control column summary
How to understand "array name is essentially an address" from the perspective of memory parsing?
DOM operation -- operation node
Mongodb tutorial Chapter 08 comparison operators
Mba-day29 arithmetic - preliminary understanding of absolute value
Code audit CMS
中文文本纠错任务简介
leetcode-aboutString
The idea YML file code does not prompt the solution
How to handle aggregate collection code
[cloud native] record of feign custom configuration of microservices
Lemon class automatic learning after all
idea yml 文件代码不提示解决方案
MBA-day29 算术-绝对值初步认识
Unity Profiler
Home VR panoramic display production to improve customer transformation
Lightweight MCU command line interaction project, all open source








