Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Association list
(section)
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!
{{Short description|Linked list of key-value pairs}} {{Infobox data structure |name=Association list |type=[[associative array]] |invented_by= |invented_year= |space_avg=O(''n'') |space_worst=O(''n'') |search_avg=O(''n'') |search_worst=O(''n'') |insert_avg=O(1) |insert_worst=O(1) |delete_avg=O(''n'') |delete_worst=O(''n'') }} In [[computer programming]] and particularly in [[Lisp (programming language)|Lisp]], an '''association list''', often referred to as an '''alist''', is a [[linked list]] in which each list element (or [[Node (computer science)|node]]) comprises a [[Attribute–value pair|key and a value]]. The association list is said to ''associate'' the value with the key. In order to find the value associated with a given key, a [[sequential search]] is used: each element of the list is searched in turn, starting at the head, until the key is found. Associative lists provide a simple way of implementing an [[associative array]], but are efficient only when the number of keys is very small.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)