Skip to content

Commit

Permalink
@FlyingfishMORE 提供】完全二叉树结点性质修改
Browse files Browse the repository at this point in the history
  • Loading branch information
huihut committed Oct 14, 2018
1 parent 5158174 commit 8411995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ typedef struct GLNode1 {
4. 有 n 个结点的完全二叉树深度 k = ⌊ log<sub>2</sub>(n) ⌋ + 1
5. 对于含 n 个结点的完全二叉树中编号为 i (1 <= i <= n) 的结点
1. 若 i = 1,为根,否则双亲为 ⌊ i / 2 ⌋
2. 若 2i > n,则 i 结点没有左孩子,否则孩子编号为 2i + 1
2. 若 2i > n,则 i 结点没有左孩子,否则孩子编号为 2i
3. 若 2i + 1 > n,则 i 结点没有右孩子,否则孩子编号为 2i + 1

#### 存储结构
Expand Down

0 comments on commit 8411995

Please sign in to comment.