Data Structures and Algorithms Cheatsheet

Definitions, Symbols, Formulas, and Notes — All in One Place.

Show Shortcuts

Arrays

Term

Definition

LengthThe total number of elements currently in the array.
CapacityThe maximum number of elements an array can hold.
IndexThe number, usually starting with 0, pointing to an element's position within an array.
ArrayA linear data structure consisting of a collection of elements, each identified by at least one index or key.

Array Operations

Linked Lists

Linked List Operations

Queues

Queue Operations

Stack Properties

Stack Operations

Trees

Binary Trees

AVL Trees

Red and Black Trees

B Trees

Properties of Heaps

Heap Operations

Hash Tables

Hash Table Operations

Graphs

Graph Algorithms

Dynamic Programming

Sorting Algorithms

Searching Algorithms

Tree Operations