News for hackers. Stuff that matters.
Re:The Skip list by pmjordan on Saturday March 06, 2010 @07:28AM (#1171449)
There aren't any cycles, so this shouldn't be difficult. I'm not sure how efficient it'll be though, even with laziness.
Re:The Skip list by crux_ on Saturday March 06, 2010 @12:33PM (#1171805)
An easy first guess as to efficiency would be O(n) for insertions and deletions, since that's what you need to maintain a sorted list (which is the lowest level of a skip-list).
Re:The Skip list by chancho on Saturday March 06, 2010 @12:50PM (#1171835)
It doesn't have to be a linked list though. There are other purely functional sequence data structures which support O(log n) insertion and deletion, e.g. Haskell's Data.Sequence, which is a finger tree of some sort. If you could find a way to do binary search on one of these in better than O(log^2 n) time you'd pretty much have your purely functional skip list.