当前位置:网站首页>Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
2022-07-07 23:37:00 【YYY Zxc】
1、Longueur moyenne de la recherche(Hauteur de l'arbre):
2、Facteur d'équilibre du noeud=Hauteur du sous - arbre gauche-Hauteur du sous - arbre droit
Le facteur d'équilibre d'un noeud d'arbre binaire équilibré ne peut être que0,1Ou-1

2、Insérer
2.1 L'objet de chaque ajustement est“Sous - arbre de déséquilibre minimal”

2.2 Ajuster le Sous - arbre de déséquilibre minimalA
①LL【AL'enfant gauche tourne vers le haut à droite】:InAL'insertion dans le Sous - arbre gauche de l'enfant gauche provoque un déséquilibre
②RR【AL'enfant droit tourne à gauche】:InAL'insertion dans le Sous - arbre droit de l'enfant droit provoque un déséquilibre

③LR【AL'enfant de gauche l'enfant de droite tourne d'abord à gauche, puis à droite】:
InAL'insertion dans le Sous - arbre droit de l'enfant de gauche provoque un déséquilibre

④RL【A L'enfant droit l'enfant gauche tourne d'abord à droite, puis à gauche 】:
InAL'insertion dans le Sous - arbre gauche de l'enfant droit provoque un déséquilibre
【Note:】 Chaque rotation fait de cet enfant un père , Papa devient un enfant.
【Note:】Seuls les enfants de gauche peuvent pivoter vers le haut à droite
Seul l'enfant droit peut tourner à gauche

3、Supprimer

边栏推荐
- MySQL Index Optimization Practice II
- 给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
- New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
- SAP HR social work experience 0023
- The file format and extension of XLS do not match
- B_ QuRT_ User_ Guide(36)
- UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
- 包装行业智能供应链S2B2B商城解决方案:开辟电商消费新生态
- Live-Server使用
- B_QuRT_User_Guide(36)
猜你喜欢
![给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」](/img/21/2e99dd6173ab4925ec22290cd4a357.png)
给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」

Anxinco esp32-a1s development board is adapted to Baidu dueros routine to realize online voice function

LM12丨Rolling Heikin Ashi二重K线滤波器

Deep understanding of MySQL lock and transaction isolation level
![[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware](/img/bc/8241a339cca9b7af475169dba39c10.jpg)
[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware

Anxin vb01 offline voice module access intelligent curtain guidance

Pycharm essential plug-in, change the background (self use, continuous update) | CSDN creation punch in

电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级

Flash encryption process and implementation of esp32

2022第六季完美童模陕西总决赛圆满落幕
随机推荐
StringUtils工具类
USB (XVIII) 2022-04-17
Anxinco esp32-a1s development board is adapted to Baidu dueros routine to realize online voice function
Ora-02437 failed to verify the primary key violation
Ora-01741 and ora-01704
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
Markdown
One week learning summary of STL Standard Template Library
MATLAB signal processing [Q & A essays · 2]
How to login and enable synchronization function in Google browser
Interface
IDEA 2021.3. X cracking
C # exchange number, judge to pass the exam
Boost regex library source code compilation
windows设置redis开启自动启动
0-1背包问题
The 19th Zhejiang Provincial College Programming Contest 2022 f.easyfix chairman tree
C method question 2
2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?