News for hackers. Stuff that matters.
Re:Ask HN: What are some cool but obscure data structures yo... by pjscott on Thursday July 21, 2022 @09:27PM (#32187398)
You can do this with any tree, finger or otherwise, and the big-O stuff applies as long as the tree is within a constant factor of balanced. For some bizarre reason, though, the concept of caching a monoid in each node doesn’t seem to have spread to the standard libraries of most languages. It’s a pity, since that would be incredibly useful.

There are no comments on this comment yet.