Questions tagged [interval-tree]

Interval-tree allows one to efficiently find all intervals that overlap with any given interval or point

In computer science, an interval tree is an ordered tree data structure to hold intervals.

It allows one to efficiently find all intervals that overlap with any given interval or point. It is often used for windowing queries, for instance, to find all roads on a computerized map inside a rectangular viewport, or to find all visible elements inside a three-dimensional scene. A similar data structure is the segment tree.

Queries require O(log n + m) time, with n being the total number of intervals and m being the number of reported results. Construction requires O(n log n) time, and storage requires O(n) space.

78 questions
-1
votes
1 answer

find all combinations with non-overlapped regions

Within a super-region S, there are k small subregions. The number k can be up to 200. There may be overlap between subregions. I have millions of regions S. For each super-region, my goal is to find out all combinations in which there are 2 or more…
ybzhao
  • 69
  • 9
-1
votes
1 answer

List all overlapping intervals efficiently

Let T be a given interval tree (of size n) and i be an interval. Let k be the number of intervals in T that overlap i. I need to find an algorithm to list all of them in time O(min(n, k log n)).
user3787291
  • 217
  • 3
  • 12
-1
votes
1 answer

how to delete node from interval tree

I have been reading about interval trees on wikipedia. Does anyone know how to implement the delete method in Java? The link to the delete algorithm is http://en.wikipedia.org/wiki/Interval_tree#Deletion
kasavbere
  • 5,873
  • 14
  • 49
  • 72
1 2 3 4 5
6