当前位置:网站首页>二叉树
二叉树
2022-06-29 09:27:00 【西宏柿王多鱼】
1.定义
二叉树是每个结点最多有两个子树的树结构。通常子树被称作“左子树”(left subtree)和“右子树”(right subtree)。
完全二叉树 :在一棵二叉树中,除最后一层外,若其余层都是满的,并且最后一层或者是满的,或者是在右边缺少连续若干节点。
2.简单概念
结点的度:结点拥有的子树的数目。
叶子:度为零的结点。
分支结点:度不为零的结点。
树的度:树中结点的最大的度。
层次:根结点的层次为1,其余结点的层次等于该结点的双亲结点的层次加1。
树的高度:树中结点的最大层次。
无序树:如果树中结点的各子树之间的次序是不重要的,可以交换位置。
有序树:如果树中结点的各子树之间的次序是重要的, 不可以交换位置。
森林:0个或多个不相交的树组成。对森林加上一个根,森林即成为树;删去根,树即成为森林。
边栏推荐
- 1147 Heaps (30 分)
- How to quickly complete disk partitioning
- Picture verification code control
- Six dimensional space BFS
- 1098 Insertion or Heap Sort (25 分)
- 2021 team programming ladder competition - Simulation Competition
- How can I get the stock account opening discount? Also, is it safe to open an account online?
- 1021 Deepest Root (25 分)
- Devaxpress double click to get cell data
- 在实践中学习Spark计算框架(01)
猜你喜欢

Bug的描述、定级、生命周期

IIS server related error

Nacos environmental isolation

Recurrence of vulnerability analysis for Cisco ASA, FTD and hyperflex HX

The stones game

1146 Topological Order (25 分)

Web vulnerability manual detection and analysis

六度空间 bfs

在VMware workstation中安装WMware ESXi 6.5.0并进行配置

解决zxing的QR码包含中文时乱码的问题
随机推荐
Slide the custom control to close the activity control
BUUCTF--内涵的软件
Dynamic planning summary
C#中Linq常用用法
2019.10.16 training summary
Application of Pgp in encryption technology
Analysis of liferayportal jsonws deserialization vulnerability (cve-2020-7961)
Installing and configuring wmware esxi 6.5.0 in VMware Workstation
Call another interface button through win32API
std::make_ shared<T>/std::make_ Unique < T> and std:: shared_ ptr<T>/std::unique_ The difference and relation between PTR < t >
51nod1277 maximum value in string [KMP]
Vmware的下载与安装(基本思路+详细过程)
2019.10.23 training summary
Use of Azkaban in task scheduler
1147 heaps (30 points)
L1-009 N个数求和 (20 分)
October 17, 2020: question brushing 1
攻防世界-Re-insfsay
1021 deep root (25 points)
qgis制图