14-1 Point of maximum overlap
Suppose that we wish to keep track of a point of maximum overlap in a set of intervals—a point with the largest number of intervals in the set that overlap it.
a. Show that there will always be a point of maximum overlap that is an endpoint of one of the segments.
b. Design a data structure that efficiently supports the operations , , and , which returns a point of maximum overlap. ( Keep a red-black tree of all the endpoints. Associate a value of with each left endpoint, and associate a value of with each right endpoint. Augment each node of the tree with some extra information to maintain the point of maximum overlap.)
(Removed)