/binary_trees

Binary tree data structure :evergreen_tree: :herb:

Primary LanguageC

Binary trees

Binary-trees

Binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child

General

What is a binary tree What is the difference between a binary tree and a Binary Search Tree What is the possible gain in terms of time complexity compared to linked lists What are the depth, the height, the size of a binary tree What are the different traversal methods to go through a binary tree What is a complete, a full, a perfect, a balanced binary tree

Types of binary trees

  1. Full Binary Tree
  2. Complete Binary Tree
  3. Perfect Binary Tree
  4. Balanced Binary Tree
  5. Degenerate Binary Tree

Binary Tree Components

  1. Data element
  2. Pointer to left subtree
  3. Pointer to right subtree

Binary-trees

Authors