...

/

More on Complete Binary Trees

More on Complete Binary Trees

In this lesson, we are going to discuss what Complete Binary Trees are and how elements are inserted into them.

Introduction

Here are some more detailed properties of complete binary trees.

  • All the levels are completely filled except possibly the last one
  • Nodes at the last level are as far left as possible
  • The total number of nodes, nn, in a complete binary tree of height “h” are: 2hnodes2h+112^h \leq nodes \leq 2^{h+1}-1
...
Access this course and 1400+ top-rated courses and projects.