algoritmauzmanı
Sign in
TREN
Subtopic 6.1

Binary Tree

2lessons12 min0done

In a every node has at most two children: a left one and a right one. This limit makes the tree easy to lay out in an array and easy to code.

The subtopic covers the kinds of binary trees, how the number of nodes relates to the height and the formulas that exams ask about. There is no code here; the next two subtopics code the same tree first with an array, then with linked nodes.

Lesson 6.1.1 What is a binary tree? Full, complete and perfect trees6 min