kd_interval_tree

Crates.iokd_interval_tree
lib.rskd_interval_tree
version0.1.1
sourcesrc
created_at2023-02-16 12:56:05.078947
updated_at2023-02-16 13:02:51.93166
descriptionImplements a K-dimensional interval tree, for fast interval-overlap lookup. Binary-tree based implementation, i.e. O(log(n)) lookups.
homepage
repository
max_upload_size
id786734
size24,641
Paul Lesur (lesurp)

documentation

README

K-dimensional Interval Tree

This crates implements a K-dimensional interval tree, based on a binary search (with the same complexity w.r.t operations).

Features

  • Creation of the tree from a Vec
  • Overlap / inclusion test
  • Overlapping intervals retrieval
  • Overlapping volume computation

~~ That's all folks ~~

TODOs

  1. Support insertion!
  2. ... and deletion, mutation in general
  3. Make API safer: how to get the desired behavior for the dynamic case?) -> without using more than one trait...
  4. Make API safer: add different overload when "borrowing" is desired, or exact same type is expected.
  5. Real benchmarks...
Commit count: 0

cargo fmt