当前位置:网站首页>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
边栏推荐
- Development projects get twice the result with half the effort, a large collection of open source STM32 driver Libraries
- 芯片的翻新和造假,人被坑麻了
- 高分子物理试题库
- jupyter notebook快捷键
- Redis official visualization tool, with high appearance value and powerful functions!
- LNMP architecture
- leetcode-Array
- 高频电子线路复习考试题及答案
- MongoDB 常用命令
- Embedded general learning route arrangement
猜你喜欢
随机推荐
Chapter 1 - Construction of development environment
Another open source artifact, worth collecting and learning!
STL常用模板库
二叉排序树(BST) ~
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(十))
[STM32 series summary] blogger's way to quickly advance STM32 in actual combat (continuous update)
520 for what? DIY is a high-value RGB clock that girls want to watch
项目版本号怎么命名?看起来牛B
Hack the box - Introduction to networking module detailed Chinese tutorial
102. (cesium chapter) cesium road streamer
Introduction to Chinese text error correction task
Mongodb tutorial Chapter 08 comparison operators
[paper notes] anti packet loss joint coding for network speech steganography
Jdbc流式查询与游标查询
Application and value of IVR in VoIP telephone system
How to view the container name in pod
Dynamic memory management and flexible array
Rocbossphp free open source light community system
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(十一))
Yolov3 preparatory work









