4.1:
- A
- G、H、I、L、M and K
4.2:
For node B:
- A
- D and E
- C
- 1
- 3
For node C:
- A
- F
- B
- 1
- 2
For node D:
- B
- G and H
- E
- 2
- 1
For node E
- B
- I and J
- D
- 2
- 2
For node F
- C
- K
- Null
- 2
- 1
For node G
- D
- Null
- H
- 3
- 0
For node H
- D
- Null
- G
- 3
- 0
For node I
- E
- Null
- J
- 3
- 0
For node J
- E
- L and M
- I
- 3
- 1
For node K
- F
- Null
- Null
- 3
- 0
For node L
- J
- Null
- M
- 4
- 0
For node M
- J
- Null
- L
- 4
- 0
4.3:
The depth of the tree is 4
4.4:
Each node has two links. Except for the root node, each other node is connected to its parent node through a link, so there are N-1 links, because 2N - (N-1) = N + 1 . So it shows that in a binary tree of N nodes, there are N+1 null links representing children.
4.8:
Prefix: - * * ab + c d e
Infix: ( a * b ) * ( c + d ) – e
Postfix: a b * c d + * e –
4.9:
a:
b:
4.19: