I have intervals of the form (a1, b1), (a2, b2), ...., (an, bn)
.
I would like to support the following operations
- Adding a new interval.
- Deleting an existing interval.
- Given a point, find all intervals that do not overlap with the point.
Intervals tree is the straightforward solution if we want to find intervals which overlap with the point. What about the case when we want to find non intersecting intervals?
(2,4)
to(1,3)
produce(1,3),(2,4)
or(1,4)
? – Oriol(1,3),(2,4)
– shapiro yaacov