堆: 颗 -> 棵 (#341)
This commit is contained in:
parent
4ee3af176b
commit
33e15da721
@ -4,7 +4,7 @@ comments: true
|
||||
|
||||
# 8.1. 堆
|
||||
|
||||
「堆 Heap」是一颗限定条件下的「完全二叉树」。根据成立条件,堆主要分为两种类型:
|
||||
「堆 Heap」是一棵限定条件下的「完全二叉树」。根据成立条件,堆主要分为两种类型:
|
||||
|
||||
- 「大顶堆 Max Heap」,任意结点的值 $\geq$ 其子结点的值;
|
||||
- 「小顶堆 Min Heap」,任意结点的值 $\leq$ 其子结点的值;
|
||||
|
Loading…
x
Reference in New Issue
Block a user