当前位置:网站首页>B-Tree
B-Tree
2022-06-22 02:42:00 【Cloud returns - Dusk】
Preface
I feel that YanWeiMin's data structure is about BTree The operation of is too ideal . In particular, the sibling nodes for deleting operations . Then move the maximum and minimum up . I feel very wordy . So I abstracted several meta operations . Both insert and delete can be converted by this . With down In fact, there is no need to find the minimum leaf node to exchange after the operation . You can delete the value all the way down To the bottom .
Meta operation
split operation
pull operation
down operation
check operation Check for conformity B-Tree The nature of the tree
Delete and insert operations ( recursive )
insert
Operational elements
- Current work node n
- State quantity tag
Definition
- n It's empty : Create a leaf node ,tag = 2
- tag = 0 : return
- tag =1 : Update child nodes ,tag=0
- tag = 2:pull operation
- check For false :split operation , tag = 2
- check It's true :tag=1
delete
Operational elements
- Current work node n
- State quantity tag
Definition
- After deleting check It's true :tag=0, return
- After deleting check For false :tag=1, return
- tag=0: return
- tag=1: Update child nodes
- check It's true tag=0 return
- Brother node is ⌈m/2⌉: Yes n node split, Again down operation ,tag=1
- Sibling node subtree >⌈m/2⌉: Yes n node split, Again down operation , Then the sub nodes split, Again pull operation .tag=1
边栏推荐
- Wechat applet film and television review and exchange platform system graduation design (1) development outline
- 最新发布:Neo4j 图数据科学 GDS 2.0 和 AuraDS GA
- Chapter 24 image and video processing based on Simulink -- matlab in-depth learning and practical collation
- Implementation differences between import and require in browser and node environments
- 智翔金泰冲刺科创板:年营收3919万亏损超3亿 拟募资40亿
- When retail digitalization enters a new stage of development, we need to connect the public domain with the private domain
- 【9. 子矩阵和】
- 如何选择合适的 Neo4j 版本(2022版)
- How to use tensorboard add_ histogram
- Ioerror: no translation files found for default language zh cn Solutions for
猜你喜欢
![Comprehensive interpretation by enterprise reviewers: enterprise growth of [State Grid] China Power Finance Co., Ltd](/img/4e/345ceb4e91aae844d7ab53ad3fd988.png)
Comprehensive interpretation by enterprise reviewers: enterprise growth of [State Grid] China Power Finance Co., Ltd

如何选择合适的 Neo4j 版本(2022版)

Neo4j 智能供应链应用源代码简析

With the acceleration of industry wide digital transformation, what kind of storage will be more popular?

Wechat applet film and television comment exchange platform system graduation design completion (6) opening defense ppt

Minecraft 1.18.2 biochemical 8 module version 1.3 3D objects + more complex villages

Annual special analysis of China Mobile Banking in 2022

Chapter 21 design of pavement crack detection and identification system -- matlab deep learning practice

Minecraft 1.18.2 生化8 模组 1.3版本 物品3D化+更加复杂村庄

Pytorch visualization
随机推荐
2022钎焊考试模拟100题及答案
PMP项目管理知识该如何运用?
Wechat applet film and television review and exchange platform system graduation design completion (7) Interim inspection report
Graphconnect 2022 at a glance
Comprehensive interpretation by enterprise reviewers: enterprise growth of [State Grid] China Power Finance Co., Ltd
【8、一维前缀和】
PMP备考相关敏捷知识
OpenJudge NOI 1.13 46:八进制到十进制
[pit encountered in docekr learning]
Word document to markdown document?
How to use tensorboard add_ histogram
Starting from the classification of database, I understand the graph database
Programming of pytorch interface
Flash back when GoLand starts
Create RT_ Thread thread
postgresql根据时间字段的大小来取数
使用 Neo4j 沙箱学习 Neo4j 图数据科学 GDS
mocklog_ Simulation log
目标检测之——labelImg标注工具使用方法
Development of power plant compliance test system with LabVIEW