Exercise 10.6

Let I be a set of intervals on the real line. We want to be able to count the number of intervals containing a query point in O(log n) time. Thus, the query time must be independent of the number of segments containing the query point.