encyclopegia.org

Associative array

In computer science, an associative array, key-value store, map, symbol table, or dictionary is an abstract data type that stores a collection of key/value pairs, such that each possible key appears at most once in the collection. In mathematical terms, an associative array is a function with finite domain. It supports 'lookup', 'remove', and 'insert' operations. The dictionary problem is the classic problem of designing efficient data structures that implement associative arrays. The two major solutions to the dictionary problem are hash tables and search trees. It is sometimes also possible to solve the problem using directly addressed arrays, binary search trees, or other more specialized structures. Many programming languages include associative arrays as primitive data types, while many other languages provide software libraries that support associative arrays. Content-addressable memory is a form of direct hardware-level support for associative arrays. Associative arrays have many applications including such fundamental programming patterns as memoization and the decorator pattern. The name does not come from the associative property known in mathematics. Rather, it arises from the association of values with keys. It should not be confused with associative processors.

In computer science, an associative array, key-value store, map, symbol table, or dictionary is an abstract data type that stores a collection of key/value pairs, such that each possible key appears at most once in the collection. In mathematical terms, an associative array is a function with finite domain. It supports 'lookup', 'remove', and 'insert' operations. The dictionary problem is the classic problem of designing efficient data structures that implement associative arrays. The two major solutions to the dictionary problem are hash tables and search trees. It is sometimes also possible to solve the problem using directly addressed arrays, binary search trees, or other more specialized structures. Many programming languages include associative arrays as primitive data types, while many other languages provide software libraries that support associative arrays. Content-addressable memory is a form of direct hardware-level support for associative arrays. Associative arrays have many applications including such fundamental programming patterns as memoization and the decorator pattern. The name does not come from the associative property known in mathematics. Rather, it arises from the association of values with keys. It should not be confused with associative processors. ==Operations== In an associative array, the association between a key and a value is often known as a "mapping"; the same word may also be used to refer to the process of creating a new association. The operations that are usually defined for an associative array are: Insert or put add a new (key, value) pair to the collection, mapping the key to its new value. Any existing mapping is overwritten. The arguments to this operation are the key and the value. Remove or delete remove a (key, value) pair from the collection, unmapping a given key from its value. The argument to this operation is the key. Lookup, find, or get find the value (if any) that is bound to a given key. The argument to this operation is the key, and the value is returned from the operation. If no value is found, some lookup functions raise an exception, while others return a default value (such as zero, null, or a specific value passed to the constructor). Associative arrays may also include other operations such as determining the number of mappings or constructing an iterator to loop over all the mappings. For such operations, the order in which the mappings are returned is usually implementation-defined. A multimap generalizes an associative array by allowing multiple values to be associated with a single key. A bidirectional map is a related abstract data type in which the mappings operate in both directions: each value must be associated with a unique key, and a second lookup operation takes a value as an argument and looks up the key associated with that value. ===Properties=== The operations of the associative array should satisfy various properties: lookup(k, insert(j, v, D)) = if k == j then v else lookup(k, D) lookup(k, new()) = fail , where fail is an exception or default value remove(k, insert(j, v, D)) = if k == j then remove(k, D) else insert(j, v, remove(k, D)) remove(k, new()) = new() where k and j are keys, v is a value, D is an associative array, and new() creates a new, empty associative array. ===Example=== Suppose that the set of loans made by a library is represented in a data structure. Each book in a library may be checked out by one patron at a time. However, a single patron may be able to check out multiple books. Therefore, the information about which books are checked out to which patrons may be represented by an associative array, in which the books are the keys and the patrons are the values. Using notation from Python or JSON, the data structure would be: { "Pride and Prejudice": "Alice", "Wuthering Heights": "Alice", "Great Expectations": "John" } A lookup operation on the key "Great Expectations" would return "John". If John returns his book, that would cause a deletion operation, and if Pat checks out a book, that would cause an insertion operation, leading to a different state: { "Pride and Prejudice": "Alice", "The Brothers Karamazov": "Pat", "Wuthering Heights": "Alice" } ==Implementation== For dictionaries with very few mappings, it may make sense to implement the dictionary using an association list, which is a linked list of mappings. With this implementation, the time to perform the basic dictionary operations is linear in the total number of mappings. However, it is easy to implement and the constant factors in its running time are small. Another very simple implementation technique, usable when the keys are restricted to a narrow range, is direct addressing into an array: the value for a given key k is stored at the array cell A[k], or if there is no mapping for k then the cell stores a special sentinel value that indicates the lack of a mapping. This technique is simple and fast, with each dictionary operation taking constant time. However, the space requirement for this structure is the size of the entire keyspace, making it impractical unless the keyspace is small. The two major approaches for implementing dictionaries are a hash table or a search tree. ==Language support== Associative arrays can be implemented in any programming language as a package and many language systems provide them as part of their standard library. In some languages, they are not only built into the standard system, but have special syntax, often using array-like subscripting. Built-in syntactic support for associative arrays was introduced in 1969 by SNOBOL4, under the name "table". TMG offered tables with string keys and integer values. MUMPS made multi-dimensional associative arrays, optionally persistent, its key data structure. SETL supported them as one possible implementation of sets and maps. Most modern scripting languages, starting with AWK and including Rexx, Perl, PHP, Tcl, JavaScript, Maple, Python, Ruby, Wolfram Language, Go, and Lua, support associative arrays as a primary container type. In many more languages, they are available as library functions without special syntax. In Smalltalk, Objective-C, .NET, Python, REALbasic, Swift, VBA and Delphi they are called dictionaries; in Perl and Ruby they are called hashes; in C++, C#, Java, Go, Clojure, Scala, OCaml, Haskell they are called maps (see map (C++), unordered_map (C++), and ); in Common Lisp and Windows PowerShell, they are called hash tables (since both typically use this implementation); in Maple and Lua, they are called tables. In PHP and R, all arrays can be associative, except that the keys are limited to integers and strings. In JavaScript (see also JSON), all objects behave as associative arrays with string-valued keys, while the Map and WeakMap types take arbitrary objects as keys. In Lua, they are used as the primitive building block for all data structures. In Visual FoxPro, they are called Collections. The D language also supports associative arrays. ==Permanent storage== Many programs using associative arrays will need to store that data in a more permanent form, such as a computer file. A common solution to this problem is a generalized concept known as archiving or serialization, which produces a text or binary representation of the original objects that can be written directly to a file. This is most commonly implemented in the underlying object model, like .Net or Cocoa, which includes standard functions that convert the internal data into text. The program can create a complete text representation of any group of objects by calling these methods, which are almost always already implemented in the base associative array class. For programs that use very large data sets, this sort of individual file storage is not appropriate, and a database management system (DB) is required. Some DB systems natively store associative arrays by serializing the data and then storing that serialized data and the key. Individual arrays can then be loaded or saved from the database using the key to refer to them. These key–value stores have been used for many years and have a history as long as that of the more common relational database (RDBs), but a lack of standardization, among other reasons, limited their use to certain niche roles. RDBs were used for these roles in most cases, although saving objects to a RDB can be complicated, a problem known as object-relational impedance mismatch. After approximately 2010, the need for high-performance databases suitable for cloud computing and more closely matching the internal structure of the programs using them led to a renaissance in the key–value store market. These systems can store and retrieve associative arrays in a native fashion, which can greatly improve performance in common web-related workflows. ==See also== Tuple Function (mathematics) ==External links== NIST's Dictionary of Algorithms and Data Structures: Associative Array

References

  1. A theory of finite maps · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "A theory of finite maps." Collins, Graham; Syme, Donald (1995). 2026-11-20. https://doi.org/10.1007/3-540-60275-5_61. Accessed 24 November 2026.

    Chicago "A theory of finite maps." Collins, Graham; Syme, Donald (1995). 2026-11-20. https://doi.org/10.1007/3-540-60275-5_61.

    APA Collins, Graham; Syme, Donald (1995). (2026). A theory of finite maps. Retrieved November 24, 2026, from https://doi.org/10.1007/3-540-60275-5_61

  2. Goodrich & Tamassia (2006) , pp. 389–397. Wikipedia revision 1361955845, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Goodrich & Tamassia (2006) , pp. 389–397. Wikipedia revision 1361955845, retrieved 2026-11-21." Goodrich & Tamassia (2006) , pp. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Goodrich & Tamassia (2006) , pp. 389–397. Wikipedia revision 1361955845, retrieved 2026-11-21." Goodrich & Tamassia (2006) , pp. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Goodrich & Tamassia (2006) , pp. (2026). Goodrich & Tamassia (2006) , pp. 389–397. Wikipedia revision 1361955845, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  3. When should I use a hash table instead of an association list? · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "When should I use a hash table instead of an association list?." 2026-11-20. http://www.faqs.org/faqs/lisp-faq/part2/section-2.html. Accessed 24 November 2026.

    Chicago "When should I use a hash table instead of an association list?." 2026-11-20. http://www.faqs.org/faqs/lisp-faq/part2/section-2.html.

    APA encyclopegia.org. (2026). When should I use a hash table instead of an association list?. Retrieved November 24, 2026, from http://www.faqs.org/faqs/lisp-faq/part2/section-2.html

  4. Trees in STL · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Trees in STL." Adams, Joel; Nyhoff, Larry (2003). 2026-11-20. http://cs.calvin.edu/books/c++/intro/3e/WebItems/Ch15-Web/STL-Trees.pdf. Accessed 24 November 2026.

    Chicago "Trees in STL." Adams, Joel; Nyhoff, Larry (2003). 2026-11-20. http://cs.calvin.edu/books/c++/intro/3e/WebItems/Ch15-Web/STL-Trees.pdf.

    APA Adams, Joel; Nyhoff, Larry (2003). (2026). Trees in STL. Retrieved November 24, 2026, from http://cs.calvin.edu/books/c++/intro/3e/WebItems/Ch15-Web/STL-Trees.pdf

  5. Linear vs Binary Search · retrieved 2016-11-19 · rev 1361955845
    Cite this reference

    MLA "Linear vs Binary Search." Probst, Mark (2010-04-30). 2016-11-19. https://schani.wordpress.com/2010/04/30/linear-vs-binary-search/. Accessed 24 November 2026.

    Chicago "Linear vs Binary Search." Probst, Mark (2010-04-30). 2016-11-19. https://schani.wordpress.com/2010/04/30/linear-vs-binary-search/.

    APA Probst, Mark (2010-04-30). (2016). Linear vs Binary Search. Retrieved November 24, 2026, from https://schani.wordpress.com/2010/04/30/linear-vs-binary-search/

  6. A comparison of adaptive radix trees and hash tables · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "A comparison of adaptive radix trees and hash tables." Alvarez, Victor; Richter, Stefan; Chen, Xiao; Dittrich, Jens (April 2015). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A comparison of adaptive radix trees and hash tables." Alvarez, Victor; Richter, Stefan; Chen, Xiao; Dittrich, Jens (April 2015). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Alvarez, Victor; Richter, Stefan; Chen, Xiao; Dittrich, Jens (April 2015). (2026). A comparison of adaptive radix trees and hash tables. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  7. std::map · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "std::map." 2026-11-20. https://en.cppreference.com/w/cpp/container/map. Accessed 24 November 2026.

    Chicago "std::map." 2026-11-20. https://en.cppreference.com/w/cpp/container/map.

    APA encyclopegia.org. (2026). std::map. Retrieved November 24, 2026, from https://en.cppreference.com/w/cpp/container/map

  8. OrderedDictionary Class (System.Collections.Specialized) · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "OrderedDictionary Class (System.Collections.Specialized)." "OrderedDictionary Class (System. 2026-11-20. https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.ordereddictionary?view=netframework-4.8. Accessed 24 November 2026.

    Chicago "OrderedDictionary Class (System.Collections.Specialized)." "OrderedDictionary Class (System. 2026-11-20. https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.ordereddictionary?view=netframework-4.8.

    APA "OrderedDictionary Class (System. (2026). OrderedDictionary Class (System.Collections.Specialized). Retrieved November 24, 2026, from https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.ordereddictionary?view=netframework-4.8

  9. LinkedHashMap · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "LinkedHashMap." 2026-11-20. https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/LinkedHashMap.html. Accessed 24 November 2026.

    Chicago "LinkedHashMap." 2026-11-20. https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/LinkedHashMap.html.

    APA encyclopegia.org. (2026). LinkedHashMap. Retrieved November 24, 2026, from https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/LinkedHashMap.html

  10. Optimal Bounds on the Dictionary Problem · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Optimal Bounds on the Dictionary Problem." Andersson, Arne (1989). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Optimal Bounds on the Dictionary Problem." Andersson, Arne (1989). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Andersson, Arne (1989). (2026). Optimal Bounds on the Dictionary Problem. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  11. collections — Container datatypes — Python 3.9.0a3 documentation · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "collections — Container datatypes — Python 3.9.0a3 documentation." "collections — Container datatypes — Python 3. 2026-11-20. https://docs.python.org/3.9/library/collections.html#collections.OrderedDict. Accessed 24 November 2026.

    Chicago "collections — Container datatypes — Python 3.9.0a3 documentation." "collections — Container datatypes — Python 3. 2026-11-20. https://docs.python.org/3.9/library/collections.html#collections.OrderedDict.

    APA "collections — Container datatypes — Python 3. (2026). collections — Container datatypes — Python 3.9.0a3 documentation. Retrieved November 24, 2026, from https://docs.python.org/3.9/library/collections.html#collections.OrderedDict

  12. A history of the SNOBOL programming languages · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "A history of the SNOBOL programming languages." Griswold, Ralph E. 2026-11-20. https://en.wikipedia.org/wiki/Ralph_E._Griswold. Accessed 24 November 2026.

    Chicago "A history of the SNOBOL programming languages." Griswold, Ralph E. 2026-11-20. https://en.wikipedia.org/wiki/Ralph_E._Griswold.

    APA Griswold, Ralph E. (2026). A history of the SNOBOL programming languages. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Ralph_E._Griswold

  13. /usr/doc/awk · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "/usr/doc/awk." 2026-11-20. https://github.com/dspinellis/unix-history-repo/blob/Research-V7/usr/doc/awk. Accessed 24 November 2026.

    Chicago "/usr/doc/awk." 2026-11-20. https://github.com/dspinellis/unix-history-repo/blob/Research-V7/usr/doc/awk.

    APA encyclopegia.org. (2026). /usr/doc/awk. Retrieved November 24, 2026, from https://github.com/dspinellis/unix-history-repo/blob/Research-V7/usr/doc/awk

  14. Dictionary<TKey, TValue> Class · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Dictionary<TKey, TValue> Class." 2026-11-20. http://msdn.microsoft.com/en-us/library/xfhwa508.aspx. Accessed 24 November 2026.

    Chicago "Dictionary<TKey, TValue> Class." 2026-11-20. http://msdn.microsoft.com/en-us/library/xfhwa508.aspx.

    APA encyclopegia.org. (2026). Dictionary<TKey, TValue> Class. Retrieved November 24, 2026, from http://msdn.microsoft.com/en-us/library/xfhwa508.aspx

  15. System.Generics.Collections.TDictionary — RAD Studio API Documentation · retrieved 2017-04-17 · rev 1361955845
    Cite this reference

    MLA "System.Generics.Collections.TDictionary — RAD Studio API Documentation." "System. 2017-04-17. http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections.TDictionary. Accessed 24 November 2026.

    Chicago "System.Generics.Collections.TDictionary — RAD Studio API Documentation." "System. 2017-04-17. http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections.TDictionary.

    APA "System. (2017). System.Generics.Collections.TDictionary — RAD Studio API Documentation. Retrieved November 24, 2026, from http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections.TDictionary

  16. Associative Arrays, the D programming language · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Associative Arrays, the D programming language." 2026-11-20. http://dlang.org/hash-map.html. Accessed 24 November 2026.

    Chicago "Associative Arrays, the D programming language." 2026-11-20. http://dlang.org/hash-map.html.

    APA encyclopegia.org. (2026). Associative Arrays, the D programming language. Retrieved November 24, 2026, from http://dlang.org/hash-map.html

  17. Archives and Serializations Programming Guide · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Archives and Serializations Programming Guide." "Archives and Serializations Programming Guide" , Apple Inc. 2026-11-20. https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Conceptual/Archiving/Archiving.html#//apple_ref/doc/uid/10000047i. Accessed 24 November 2026.

    Chicago "Archives and Serializations Programming Guide." "Archives and Serializations Programming Guide" , Apple Inc. 2026-11-20. https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Conceptual/Archiving/Archiving.html#//apple_ref/doc/uid/10000047i.

    APA "Archives and Serializations Programming Guide" , Apple Inc. (2026). Archives and Serializations Programming Guide. Retrieved November 24, 2026, from https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Conceptual/Archiving/Archiving.html#//apple_ref/doc/uid/10000047i

  18. dictionary · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "dictionary." a b Black, Paul E. 2026-11-20. https://xlinux.nist.gov/dads/HTML/dictionary.html. Accessed 24 November 2026.

    Chicago "dictionary." a b Black, Paul E. 2026-11-20. https://xlinux.nist.gov/dads/HTML/dictionary.html.

    APA a b Black, Paul E. (2026). dictionary. Retrieved November 24, 2026, from https://xlinux.nist.gov/dads/HTML/dictionary.html

  19. 'Memo' Functions and Machine Learning · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "'Memo' Functions and Machine Learning." Michie, Donald (1968). 2026-11-20. https://www.cs.utexas.edu/users/hunt/research/hash-cons/hash-cons-papers/michie-memo-nature-1968.pdf. Accessed 24 November 2026.

    Chicago "'Memo' Functions and Machine Learning." Michie, Donald (1968). 2026-11-20. https://www.cs.utexas.edu/users/hunt/research/hash-cons/hash-cons-papers/michie-memo-nature-1968.pdf.

    APA Michie, Donald (1968). (2026). 'Memo' Functions and Machine Learning. Retrieved November 24, 2026, from https://www.cs.utexas.edu/users/hunt/research/hash-cons/hash-cons-papers/michie-memo-nature-1968.pdf

  20. 11. Hash Tables · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "11. Hash Tables." a b c d Cormen, Thomas H. 2026-11-20. https://en.wikipedia.org/wiki/Thomas_H._Cormen. Accessed 24 November 2026.

    Chicago "11. Hash Tables." a b c d Cormen, Thomas H. 2026-11-20. https://en.wikipedia.org/wiki/Thomas_H._Cormen.

    APA a b c d Cormen, Thomas H. (2026). 11. Hash Tables. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Thomas_H._Cormen

  21. Goodrich & Tamassia (2006) , pp. 597–599. Wikipedia revision 1361955845, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Goodrich & Tamassia (2006) , pp. 597–599. Wikipedia revision 1361955845, retrieved 2026-11-21." Goodrich & Tamassia (2006) , pp. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Goodrich & Tamassia (2006) , pp. 597–599. Wikipedia revision 1361955845, retrieved 2026-11-21." Goodrich & Tamassia (2006) , pp. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Goodrich & Tamassia (2006) , pp. (2026). Goodrich & Tamassia (2006) , pp. 597–599. Wikipedia revision 1361955845, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  22. Dynamic Perfect Hashing: Upper and Lower Bounds · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Dynamic Perfect Hashing: Upper and Lower Bounds." a b Dietzfelbinger, M. 2026-11-20. https://web.archive.org/web/20160304094014/http://www.arl.wustl.edu/~sailesh/download_files/Limited_Edition/hash/Dynamic%20Perfect%20Hashing-%20Upper%20and%20Lower%20Bounds.pdf. Accessed 24 November 2026.

    Chicago "Dynamic Perfect Hashing: Upper and Lower Bounds." a b Dietzfelbinger, M. 2026-11-20. https://web.archive.org/web/20160304094014/http://www.arl.wustl.edu/~sailesh/download_files/Limited_Edition/hash/Dynamic%20Perfect%20Hashing-%20Upper%20and%20Lower%20Bounds.pdf.

    APA a b Dietzfelbinger, M. (2026). Dynamic Perfect Hashing: Upper and Lower Bounds. Retrieved November 24, 2026, from https://web.archive.org/web/20160304094014/http://www.arl.wustl.edu/~sailesh/download_files/Limited_Edition/hash/Dynamic%20Perfect%20Hashing-%20Upper%20and%20Lower%20Bounds.pdf

  23. Pathfinders for associative maps · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "Pathfinders for associative maps." Klammer, F. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Pathfinders for associative maps." Klammer, F. 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Klammer, F. (2026). Pathfinders for associative maps. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  24. §9.1 The Map Abstract Data Type · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "§9.1 The Map Abstract Data Type." a b c d e Goodrich, Michael T. 2026-11-20. https://en.wikipedia.org/wiki/Michael_T._Goodrich. Accessed 24 November 2026.

    Chicago "§9.1 The Map Abstract Data Type." a b c d e Goodrich, Michael T. 2026-11-20. https://en.wikipedia.org/wiki/Michael_T._Goodrich.

    APA a b c d e Goodrich, Michael T. (2026). §9.1 The Map Abstract Data Type. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Michael_T._Goodrich

  25. 6. Searching §6.4 Hashing · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "6. Searching §6.4 Hashing." Knuth, Donald (1998). 2026-11-20. https://en.wikipedia.org/wiki/Donald_Knuth. Accessed 24 November 2026.

    Chicago "6. Searching §6.4 Hashing." Knuth, Donald (1998). 2026-11-20. https://en.wikipedia.org/wiki/Donald_Knuth.

    APA Knuth, Donald (1998). (2026). 6. Searching §6.4 Hashing. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Donald_Knuth

  26. 4. Hash Tables and Associative Arrays · retrieved 2026-11-20 · rev 1361955845
    Cite this reference

    MLA "4. Hash Tables and Associative Arrays." a b c d Mehlhorn, Kurt ; Sanders, Peter (2008), "4. 2026-11-20. https://en.wikipedia.org/wiki/Kurt_Mehlhorn. Accessed 24 November 2026.

    Chicago "4. Hash Tables and Associative Arrays." a b c d Mehlhorn, Kurt ; Sanders, Peter (2008), "4. 2026-11-20. https://en.wikipedia.org/wiki/Kurt_Mehlhorn.

    APA a b c d Mehlhorn, Kurt ; Sanders, Peter (2008), "4. (2026). 4. Hash Tables and Associative Arrays. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Kurt_Mehlhorn

  27. cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10.1007/3-540-60275-5_61 | editor-first1 = E. Thomas | editor-first2 = P.J. | editor-first3 = J. | e . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10.1007/3-540-60275-5_61 | editor-first1 = E. Thomas | editor-first2 = P.J. | editor-first3 = J. | e ." cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10.1007/3-540-60275-5_61 | editor-first1 = E. Thomas | editor-first2 = P.J. | editor-first3 = J. | e ." cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10. (2026). cite book | access-date = 30 June 2026 | chapter = A theory of finite maps | date = 1995 | doi = 10.1007/3-540-60275-5_61 | editor-first1 = E. Thomas | editor-first2 = P.J. | editor-first3 = J. | e . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  28. OrderedDictionary Class (System.Collections.Specialized) . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "OrderedDictionary Class (System.Collections.Specialized) ." OrderedDictionary Class (System. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "OrderedDictionary Class (System.Collections.Specialized) ." OrderedDictionary Class (System. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA OrderedDictionary Class (System. (2026). OrderedDictionary Class (System.Collections.Specialized) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  29. LinkedHashMap . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "LinkedHashMap ." 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "LinkedHashMap ." 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA encyclopegia.org. (2026). LinkedHashMap . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  30. collections — Container datatypes — Python 3.9.0a3 documentation . docs.python.org . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "collections — Container datatypes — Python 3.9.0a3 documentation . docs.python.org ." collections — Container datatypes — Python 3. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "collections — Container datatypes — Python 3.9.0a3 documentation . docs.python.org ." collections — Container datatypes — Python 3. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA collections — Container datatypes — Python 3. (2026). collections — Container datatypes — Python 3.9.0a3 documentation . docs.python.org . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  31. /usr/doc/awk . Unix History Repository §Version 7 Unix . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "/usr/doc/awk . Unix History Repository §Version 7 Unix ." /usr/doc/awk. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "/usr/doc/awk . Unix History Repository §Version 7 Unix ." /usr/doc/awk. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA /usr/doc/awk. (2026). /usr/doc/awk . Unix History Repository §Version 7 Unix . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  32. Dictionary Class . MSDN . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Dictionary Class . MSDN ." Dictionary Class. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Dictionary Class . MSDN ." Dictionary Class. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Dictionary Class. (2026). Dictionary Class . MSDN . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  33. System.Generics.Collections.TDictionary — RAD Studio API Documentation . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "System.Generics.Collections.TDictionary — RAD Studio API Documentation ." System. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "System.Generics.Collections.TDictionary — RAD Studio API Documentation ." System. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA System. (2026). System.Generics.Collections.TDictionary — RAD Studio API Documentation . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  34. Associative Arrays, the D programming language . Digital Mars . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Associative Arrays, the D programming language . Digital Mars ." Associative Arrays, the D programming language. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Associative Arrays, the D programming language . Digital Mars ." Associative Arrays, the D programming language. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Associative Arrays, the D programming language. (2026). Associative Arrays, the D programming language . Digital Mars . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  35. Archives and Serializations Programming Guide · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Archives and Serializations Programming Guide." https://developer. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Archives and Serializations Programming Guide." https://developer. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA https://developer. (2026). Archives and Serializations Programming Guide. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  36. Dietzfelbinger, M. Dyn . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Dietzfelbinger, M. Dyn ." Dietzfelbinger, M. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Dietzfelbinger, M. Dyn ." Dietzfelbinger, M. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Dietzfelbinger, M. (2026). Dietzfelbinger, M. Dyn . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  37. Michie, Donald. 'Memo' Functions and Machine Learning . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Michie, Donald. 'Memo' Functions and Machine Learning ." Michie, Donald. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Michie, Donald. 'Memo' Functions and Machine Learning ." Michie, Donald. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Michie, Donald. (2026). Michie, Donald. 'Memo' Functions and Machine Learning . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  38. Algorithms and Data Structures: The Basic Toolbox . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Algorithms and Data Structures: The Basic Toolbox ." 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Algorithms and Data Structures: The Basic Toolbox ." 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA encyclopegia.org. (2026). Algorithms and Data Structures: The Basic Toolbox . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  39. Black, Paul E. dictionary . Dictionary of Algorithms and Data Structures . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Black, Paul E. dictionary . Dictionary of Algorithms and Data Structures ." Black, Paul E. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Black, Paul E. dictionary . Dictionary of Algorithms and Data Structures ." Black, Paul E. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Black, Paul E. (2026). Black, Paul E. dictionary . Dictionary of Algorithms and Data Structures . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  40. When should I use a hash table instead of an association list? . lisp-faq/part2 . 1996-02-20. · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "When should I use a hash table instead of an association list? . lisp-faq/part2 . 1996-02-20." When should I use a hash table instead of an association list?. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "When should I use a hash table instead of an association list? . lisp-faq/part2 . 1996-02-20." When should I use a hash table instead of an association list?. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA When should I use a hash table instead of an association list?. (2026). When should I use a hash table instead of an association list? . lisp-faq/part2 . 1996-02-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  41. Adams, Joel. C++ : an introductio . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "Adams, Joel. C++ : an introductio ." Adams, Joel. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Adams, Joel. C++ : an introductio ." Adams, Joel. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Adams, Joel. (2026). Adams, Joel. C++ : an introductio . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  42. Probst, Mark. Linear vs Binary Search . 2010-04-30. retrieved 2016-11-20 · retrieved 2016-11-19 · rev 1361955845
    Cite this reference

    MLA "Probst, Mark. Linear vs Binary Search . 2010-04-30. retrieved 2016-11-20." Probst, Mark. 2016-11-19. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "Probst, Mark. Linear vs Binary Search . 2010-04-30. retrieved 2016-11-20." Probst, Mark. 2016-11-19. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA Probst, Mark. (2016). Probst, Mark. Linear vs Binary Search . 2010-04-30. retrieved 2016-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

  43. std::map . en.cppreference.com . · retrieved 2026-06-29 · rev 1361955845
    Cite this reference

    MLA "std::map . en.cppreference.com ." std::map. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845. Accessed 24 November 2026.

    Chicago "std::map . en.cppreference.com ." std::map. 2026-06-29. https://en.wikipedia.org/w/index.php?oldid=1361955845.

    APA std::map. (2026). std::map . en.cppreference.com . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1361955845

Cite this article

MLA

"Associative array." encyclopegia.org, 2026, https://encyclopegia.org/wiki/associative-array. Accessed 24 November 2026.

Chicago

"Associative array." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/associative-array.

APA

encyclopegia.org. (2026). Associative array. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/associative-array

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Data type

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1361955845 · 0.5 · snapshot enwiki-001361955845

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.