Introduction

The only characteristic which separates Binary Tree from N-ary trees is that any internal-node (non-leaf node) can only contain a maximum of two child nodes. Each node strictly has reference to a left and a right node; we call them its left and right child. The figure below shows what a Binary Tree looks like:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b58d5a6b-1dc1-48fb-840c-fb7cfbabd17a/Untitled.png

Types of Binary Trees

The following are further variations of binary trees, based on the structure and other features:

Starting with Complete Binary Tree, let’s discuss each one of them and look at their characteristics and structure.

Complete Binary Tree

A Binary Tree is said to be complete if it satisfies the following properties:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/59a14379-1793-4d11-81fc-b1cbf03dc7d1/Untitled.png

Full Binary Tree