POV-Ray : Newsgroups : povray.off-topic : Linked lists : Re: Linked lists Server Time
29 Jul 2024 22:30:25 EDT (-0400)
  Re: Linked lists  
From: Invisible
Date: 8 Apr 2011 09:09:03
Message: <4d9f08ef$1@news.povray.org>
>> OK, the down-side: Sequential access. You can only access lists
>> sequentially. Obtaining the Nth element is a linear-time operation, and
>> any attempt at parallel processing is fairly doomed from the start.
>>
> Have you considered a skip list structure?
> (http://en.wikipedia.org/wiki/Skip_list)

No - mainly because I've never heard of it. ;-)

However, according to Wikipedia, it does everything in logarithmic time. 
Well, so does a tree [assuming you can keep it balanced]. Haskell 
already has a bazillion different tree implementations [although I don't 
recall seeing a mutable one recently].


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.