Wikipedia

List of data structures

This is a list of notable data structures. For a wider list of terms, see list of terms relating to algorithms and data structures. For a comparison of running time a subset of this list see comparison of data structures.

Data types

Primitive types

  • Boolean, true or false.
  • Character
  • Floating-point numbers, limited precision approximations of real number values.
  • Fixed-point numbers
  • Integer, integral or fixed-precision values.
  • Reference (also called a pointer or handle), a small value referring to another object's address in memory, possibly a much larger one.
  • Enumerated type, a small set of uniquely named values.
  • Date Time, value referring to Date and Time

Composite types or non-primitive type

  • Array (as an example String which is an array of characters)
  • Record (also called Associative array, Map, or structure)
  • Union (Tagged union is a subset, also called variant, variant record, discriminated union, or disjoint union)

Abstract data types

Some properties of abstract data types:

Structure Order Unique
List yes no
Associative array no yes
Set no yes
Stack yes no
Multimap no no
Multiset (bag) no no
Queue yes no

Order means the insertion sequence counts. Unique means that duplicate elements are not allowed, based on some inbuilt or, alternatively, user-defined rule for comparing elements.

Linear data structures

A data structure is said to be linear if its elements form a sequence.

Arrays

Lists

Trees

Binary trees

B-trees

Heaps

Trees

In these data structures each tree node compares a bit slice of key values.

Multi way trees

Space-partitioning trees

These are data structures used for space partitioning or binary space partitioning.

Application-specific trees

Hash-based structures

Graphs

Many graph-based data structures are used in computer science and related fields:

Other

See also

  • Purely functional data structure


External links

This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.