Bifalgorithm post · Brisk · Chapter 1
What makes a rooted tree a binary tree?
What makes a rooted tree a binary tree? (Brisk · Chapter 1) — "The nodes in a rooted tree can have any number of children. There’s a special type of rooted tre…
Ideas in this flowchart
- A binary tree is a special type of rooted tree.
- Nodes in a rooted tree can have any number of children.
- Each node in a binary tree can have at most two children.
- The two possible children are labeled the left child and the right child.
- A node may have only a left child or only a right child, and its direction remains significant.
- Figure 5.16 compares examples of binary and non-binary trees.
- The left half of Figure 5.16 is a binary tree.
- The right half is not a binary tree because C has three children.
- A larger binary tree with height 4 is also shown.
