Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Linked list
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Random-access lists=== A [[random access list|random-access list]] is a list with support for fast random access to read or modify any element in the list.<ref name="okasaki">{{cite book |last=Okasaki |first=Chris |date=1995 |title=Purely Functional Random-Access Lists |work=In Functional Programming Languages and Computer Architecture |publisher=ACM Press |pages=86β95 |url=http://cs.oberlin.edu/~jwalker/refs/fpca95.ps |format=PS |access-date=May 7, 2015}}</ref> One possible implementation is a [[skew binary random access list|skew binary random-access list]] using the [[skew binary number system]], which involves a list of trees with special properties; this allows worst-case constant time head/cons operations, and worst-case logarithmic time random access to an element by index.<ref name="okasaki"/> Random-access lists can be implemented as [[persistent data structure]]s.<ref name="okasaki"/> Random-access lists can be viewed as immutable linked lists in that they likewise support the same O(1) head and tail operations.<ref name="okasaki"/> A simple extension to random-access lists is the [[min-list]], which provides an additional operation that yields the minimum element in the entire list in constant time (without{{clarify|r=should be "disregarding"?|date=October 2011}} mutation complexities).<ref name="okasaki"/>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Linked list
(section)
Add topic