Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: