Computer Science & Information TechnologyOperating System

Binary Trees and Types

Binary Tree

  • A binary tree is the one where each node has atmost 2 children.
  • A binary tree is a finite set of elements that is either empty or is partitioned into three disjoint subsets.
  • The first subset contains a single element called the root
    root of the tree.
  • The other two subsets are themselves binary trees, called the left and right subtrees of the original tree.
  • Each element of a binary tree is called a node of the tree.

Types of Binary Trees

Strictly Binary Tree

  • If every non leaf node in a binary tree has non empty left and right substrees, the tree is termed as strictly binary tree
  • Every non-leaf node has degree 2.

Complete Binary Tree

  • A complete binary tree of depth d is the strictly binary tree – all of whose leaves are at level d.
  • A complete binary tree of depth d is the binary tree of depth d that contains exactly 2l nodes at each level l between 0 and d

Almost Complete Binary Tree

  • A binary tree of depth d is an almost complete binary tree if: is an almost complete binary tree if: At any node in the tree with a right descendent at level d, node must have a left son and every left descendent of node is either a leaf at level d or has two sons i.e., the tree must be left filled.

Dear Aspirants,
Your preparation for GATE, ESE, PSUs, and AE/JE is now smarter than ever — thanks to the MADE EASY YouTube channel.
This is not just a channel, but a complete strategy for success, where you get toppers strategies, PYQ–GTQ discussions, current affairs updates, and important job-related information, all delivered by the country’s best teachers and industry experts.
If you also want to stay one step ahead in the race to success, subscribe to MADE EASY on YouTube and stay connected with us on social media.
MADE EASY — where preparation happens with confidence.

MADE EASY

MADE EASY is a well-organized institute, complete in all aspects, and provides quality guidance for both written and personality tests. MADE EASY has produced top-ranked students in ESE, GATE, and various public sector exams. The publishing team regularly writes exam-related blogs based on conversations with the faculty, helping students prepare effectively for their exams.

Leave a Reply

Your email address will not be published. Required fields are marked *