10 Feb 02:07
Fwd: interval trees
Francois Berenger <berenger <at> riken.jp>
2012-02-10 01:07:05 GMT
2012-02-10 01:07:05 GMT
-------- Original Message -------- Subject: interval trees Date: Thu, 09 Feb 2012 17:30:21 +0900 From: Francois Berenger To: batteries-discuss <at> lists.forge.ocamlcore.org CC: biocaml <at> googlegroups.com Hello, I need to use an interval tree. Biocaml has one, batteries have imap/iset, nice! However, I have intervals of reals, not integers. :( I want to build the tree (once), then query it with a real number (many times) like in: which intervals contain the query real number? Should I convert my floats to ints (by sorting them then ranking) before inserting them into some existing interval tree for integers? I am not so concerned about the pre-processing time. Should I write from scratch? Thanks for any suggestion, F. -- -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
RSS Feed