News for hackers. Stuff that matters.
Re:Show HN: New Lisp data structure by pjscott on Wednesday December 01, 2010 @06:32PM (#1960218)
Finger trees are even more impressive than this (very clever) data structure. A sequence based on finger trees supports:

* O(lg n) lookup, split, concatenate, random insert/delete

* amortized O(1) push and pop at either end of the sequence

* Caching the value of a monoid reduction of each subsequence. Surprisingly useful.

Trellises are easier to understand, though.

There are no comments on this comment yet.