mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-13 04:10:58 +00:00
build
This commit is contained in:
@@ -11,6 +11,8 @@ comments: true
|
||||
|
||||

|
||||
|
||||
<p align="center"> Fig. 小顶堆与大顶堆 </p>
|
||||
|
||||
## 8.1.1. 堆术语与性质
|
||||
|
||||
- 由于堆是完全二叉树,因此最底层结点靠左填充,其它层结点皆被填满。
|
||||
@@ -318,6 +320,8 @@ comments: true
|
||||
|
||||

|
||||
|
||||
<p align="center"> Fig. 堆的表示与存储 </p>
|
||||
|
||||
我们将索引映射公式封装成函数,以便后续使用。
|
||||
|
||||
=== "Java"
|
||||
@@ -1427,6 +1431,8 @@ $$
|
||||
|
||||

|
||||
|
||||
<p align="center"> Fig. 完美二叉树的各层结点数量 </p>
|
||||
|
||||
化简上式需要借助中学的数列知识,先对 $T(h)$ 乘以 $2$ ,易得
|
||||
|
||||
$$
|
||||
|
||||
Reference in New Issue
Block a user