Skip to content

Fix bug in interval tree - #25

Merged
leo-collins merged 3 commits into
mainfrom
leo/fix-interval-tree-collection
Aug 27, 2026
Merged

leo-collins merged 3 commits into
mainfrom
leo/fix-interval-tree-collection

Conversation

@leo-collins

Copy link
Copy Markdown
Collaborator

For an interval tree, intervals across a node's centre are stored on its parent. Thus, the set of intervals at some level of the tree had gaps in it. collect_intervals now returns a covering set of intervals

The interval tree is structured differently to an R-tree.
Intervals cross a node's centre are stored on its parent.
Thus, the set of intervals at some level of the tree had gaps in it.
Now, collect_intervals returns a set which completely covers the
interval.
@leo-collins
leo-collins merged commit efab00d into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant