Lecture 17: B-Trees (2-3, 2-3-4 Trees)

10/5/2020

BST Tree Height

BST Tree Height

The Usefulness of Big O

Height, Depth, and Performance

Height and Depth

Height, Depth, and Runtime

Important Question: What about real world BSTs?

Randomized Trees: Mathematical Analysis

Good News and Bad News

B-trees / 2-3 trees / 2-3-4 trees

Avoiding Imbalance through Overstuffing

Revising Our Overstuffed Tree Approach: Moving Items Up

Revising Overstuffed Tree Approach: Node Splitting

add: Chain Reaction

What Happens if the root is too full?

Perfect Balance

THe Real Name for Splitting Trees is "B Trees"

B-tree Bushiness Invariants

Exercise

B-Tree Invariants

B-Tree Runtime Analysis

Height of a B-Tree with Limit L

Runtime for contains

Summary

Summary