Re: Intervals tree
- From: "Pixel.to.life" <pixel.to.life@xxxxxxxxx>
- Date: Sun, 17 Jun 2007 18:33:46 -0000
On Jun 15, 1:46 am, "0.0 Brain" <kill....@xxxxxxxxx> wrote:
Hi,
I'm looking for a data structure to handle intervals (numeric range
[a,b]). In my scenario ranges can be dinamically modified, inserted or
deleted and queries about intersecation are required.
I readhttp://en.wikipedia.org/wiki/Interval_treebut this
implementation seems not to allow insertion and deletion. While this
document:http://www.dgp.toronto.edu/people/JamesStewart/378notes/22intervals/
lacks of clarity.
Could you help me?
Tnx.
I think you need two structures: one to abstract the interval, other
to abstract a pool of intervals.
Why cant you write a simple class to implement the interval itself,
with intersection computation as a method?
And then use a heap to store these intervals?
.
- References:
- [?] Intervals tree
- From: 0.0 Brain
- [?] Intervals tree
- Prev by Date: Re: Holes in axis parallel polygon
- Next by Date: Re: PhotoZoom Professional vs. Genuine Fractals
- Previous by thread: [?] Intervals tree
- Next by thread: Re: [?] Intervals tree
- Index(es):
Relevant Pages
|