IntervalTree DeleteNode Java Implementation

前端 未结 5 1319
無奈伤痛
無奈伤痛 2021-02-06 08:14

I need an IntervalTree or RangeTree implementation in Java, and am having trouble finding one with working deletion support.

There\'s a built-in one at sun.jvm.hotspot.u

5条回答
  •  囚心锁ツ
    2021-02-06 08:35

    I don't know your exact requirements but a non-static Segment Tree might work for you. If so, have a look at Layout Management SW, specifically the SegmentTree package. It has the remove feature you need.

    If you decide to roll your own, might I suggest open sourcing it? I'm surprised there isn't an open and easy Interval Tree available already.

提交回复
热议问题