Data structure for quick time interval look up

后端 未结 4 1543
一整个雨季
一整个雨季 2020-12-02 17:31

I have a set of time intervals In = (an, bn). I need to run lots of look ups where I\'m given a time t and need to quickly return the intervals that conta

4条回答
  •  被撕碎了的回忆
    2020-12-02 18:20

    You are welcome to check out the C# implementation I've posted on CodePlex for IntervalTree which solve this problem exactly.

    Ido.

提交回复
热议问题