Interval-Search(T,i) 1 x = root(T) 2 while x NIL and not Overlap(i, interval(x)) 3 if left(x) NIL and max(left(x)) low(i) 4 then x = left(x) 5 else x = right(x) 6 return x
Note here that if max(left(x)) is large enough, then either i overlaps an interval in left(x) or i < intervals in left(x).