Algorithm

delete(T,k)

  1. Find node with key , call it
  2. If is a leaf, remove it
  3. If has a single child, replace with the child
  4. If has two children, replace with Successor Node, successor’s parent adopts successor’s right child
  5. Backtrack up to root and update sizes