二叉搜索树 & 平衡树 #1174
Replies: 8 comments 7 replies
-
请问一下,最后一段右旋左旋的代码中,update函数的作用和基本逻辑和代码示例是什么? |
Beta Was this translation helpful? Give feedback.
-
查找排名为 k 的元素中最后一行代码中0是否应该改为 |
Beta Was this translation helpful? Give feedback.
-
在remove函数里 |
Beta Was this translation helpful? Give feedback.
-
请问二叉搜索树与二叉查找树和二叉排序树有什么区别? |
Beta Was this translation helpful? Give feedback.
-
你好
二叉搜索树、二叉查找树和二叉排序树其实是同一种数据结构,都是指一种特殊的二叉树结构,具有以下特点:
1. 每个节点最多有两个子节点;
2. 左子节点的键值小于父节点的键值;
3. 右子节点的键值大于父节点的键值;
4. 左右子树也分别为二叉搜索树。
因此,这三个术语实际上是同一种树的不同称呼,没有实质性的区别。
…________________________________
发件人: Little-Tiger29 ***@***.***>
发送时间: 2024年8月19日 11:24
收件人: OI-wiki/gitment ***@***.***>
抄送: demeter1210 ***@***.***>; Comment ***@***.***>
主题: Re: [OI-wiki/gitment] 二叉搜索树 & 平衡树 (Discussion #1174)
请问二叉搜索树与二叉查找树和二叉排序树有什么区别?
―
Reply to this email directly, view it on GitHub<#1174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIYBOA2GFMCDKZLUANN3T6DZSFQPHAVCNFSM6AAAAAATTS26ISVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZXG44DCMY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
那个,我是之前在oi-wiki改了什么吗?没有印象了。(笑
…________________________________
发件人: Little-Tiger29 ***@***.***>
发送时间: 2024年8月19日 11:24
收件人: OI-wiki/gitment ***@***.***>
抄送: demeter1210 ***@***.***>; Comment ***@***.***>
主题: Re: [OI-wiki/gitment] 二叉搜索树 & 平衡树 (Discussion #1174)
请问二叉搜索树与二叉查找树和二叉排序树有什么区别?
―
Reply to this email directly, view it on GitHub<#1174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIYBOA2GFMCDKZLUANN3T6DZSFQPHAVCNFSM6AAAAAATTS26ISVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZXG44DCMY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
我感觉 |
Beta Was this translation helpful? Give feedback.
-
写了个 |
Beta Was this translation helpful? Give feedback.
-
二叉搜索树 & 平衡树
OI Wiki 是一个编程竞赛知识整合站点,提供有趣又实用的编程竞赛知识以及其他有帮助的内容,帮助广大编程竞赛爱好者更快更深入地学习编程竞赛
https://oi-wiki.org/ds/bst/
Beta Was this translation helpful? Give feedback.
All reactions