-
Arrays: A fixed-size collection of elements of the same data type, stored in contiguous memory locations.
-
Linked Lists: A collection of elements called nodes, where each node contains a data item and a reference (link) to the next node in the sequence.
-
Stacks: A linear data structure that follows the Last In First Out (LIFO) principle, where elements are added and removed from the top of the stack.
-
Queues: A linear data structure that follows the First In First Out (FIFO) principle, where elements are added at the rear and removed from the front.
-
Hash Tables: A data structure that stores key-value pairs and uses a hash function to compute an index for each key, allowing for fast retrieval of values based on their keys.
-
Trees: A hierarchical data structure that consists of nodes connected by edges, with a single root node and no cycles. Some common types of trees include binary trees, AVL trees, and B-trees.
-
Heaps: A special type of binary tree that satisfies the heap property, where each parent node is either greater than or equal to (max-heap) or less than or equal to (min-heap) its child nodes.
-
Graphs: A non-linear data structure consisting of nodes (vertices) and edges that represent relationships between the nodes. Graphs can be directed or undirected, and can have weighted or unweighted edges.
-
Tries (Prefix Trees): A tree-like data structure used for storing a dynamic set or associative array, where keys are usually strings and nodes store the next possible character in the key.
-
Sets: A collection of distinct elements with no specific order, often implemented using hash tables or binary search trees.
-
Maps (Dictionaries): A collection of key-value pairs where each unique key maps to a corresponding value, usually implemented using hash tables or binary search trees.