Binary Tree

A binary tree is a tree represented by a pointer to the root of the tree, where each node has at most two children.

Any binary tree with nodes has a height at least .

Complexity Analysis

  • Searching: Worse case is that is when it’s a straight line.
  • Insertion: Need to travel the whole tree, therefore the worse case is .
  • Delete: Need to traverse all elements so worse case is .