Digression: Splitting
Split(T, x) creates two BSTs L and R:
all elements of T are in either L or R (T = L ? R)
all elements in L are ? x
all elements in R are ? x
L and R share no elements (L ? R = ?)
Previous slide
Next slide
Back to first slide
View graphic version