in reply to indexing segments

Look up "segment trees" or "interval trees", two very common datastructures in the Computation Geometry and Algorithms/Datastructures fields.

I doubt there's much code on CPAN for this, but neither of them are hard to implement. I've programmed them out, but that was long before I knew Perl.

Abigail

Replies are listed 'Best First'.
Re: Re: indexing segments
by glwtta (Hermit) on Oct 10, 2003 at 13:40 UTC
    Thanks! Exactly what I was looking for, just a case of not knowing what it's called - "interval trees" did the trick.