Data Structures and Algorithms glossary
38 terms you will meet in the free Data Structures and Algorithms course, each explained in one or two sentences.
A
- Adjacency list
- A graph representation that stores, for each vertex, a list of its neighbors.
- Algorithm
- A finite, step-by-step procedure for solving a problem or performing a computation.
- Amortized cost
- The average cost per operation over a long sequence, even if some individual operations are expensive.
- Array
- A collection of elements stored in contiguous memory and accessed by index in constant time.
B
- Balanced tree
- A tree whose height stays proportional to log n, keeping operations fast.
- Base case
- The condition in a recursive function that returns directly without making another recursive call.
- Big O notation
- Notation that gives an upper bound on growth rate, ignoring constant factors and lower-order terms, such as O(n) or O(n log n).
- Binary search
- A search on sorted data that repeatedly halves the search range, taking O(log n) time.
- Binary search tree (BST)
- A binary tree where each node's left subtree holds smaller keys and its right subtree larger keys.
- Breadth-first search (BFS)
- A graph traversal that visits vertices in order of distance from the start, using a queue.
C
- Call stack
- The memory structure that tracks active function calls; deep recursion can overflow it.
- Collision
- When two different keys hash to the same bucket.
D
- Data structure
- A way of organizing data in memory so that certain operations are efficient.
- Depth-first search (DFS)
- A graph traversal that goes as deep as possible along each branch before backtracking, using a stack or recursion.
- Divide and conquer
- A strategy that splits a problem into smaller subproblems, solves them, and combines the results.
- Dynamic array
- An array that grows automatically, usually by allocating a larger block and copying when full.
- Dynamic programming
- Solving problems with overlapping subproblems by storing and reusing subproblem results.
G
- Graph
- A set of vertices (nodes) connected by edges, which may be directed or undirected, weighted or unweighted.
- Greedy algorithm
- An algorithm that makes the locally best choice at each step, which is optimal only for some problems.
H
- Hash function
- A function that converts a key into an integer used to choose a bucket in a hash table.
- Hash table
- A structure that maps keys to values using a hash function to compute an array index, giving average O(1) lookups.
- Heap
- A complete binary tree where each parent is no larger (min-heap) or no smaller (max-heap) than its children.
I
- In-place algorithm
- An algorithm that uses only a small, constant amount of extra memory.
L
- Linked list
- A sequence of nodes where each node stores a value and a reference to the next node.
- Load factor
- The number of stored entries divided by the number of buckets in a hash table.
- Logarithm (base 2)
- The number of times you can halve a value before reaching 1; log₂ 1,024 = 10.
M
- Memoization
- Caching the results of function calls so repeated calls with the same input return instantly.
- Merge sort
- A stable divide-and-conquer sort that splits the array, sorts the halves and merges them in O(n log n) time.
P
- Priority queue
- An abstract data type that always removes the highest-priority item first, usually implemented with a heap.
Q
- Queue
- A first-in, first-out (FIFO) collection where items are added at the back and removed from the front.
- Quicksort
- A divide-and-conquer sort that partitions around a pivot; O(n log n) on average, O(n²) in the worst case.
R
- Recursion
- A technique where a function solves a problem by calling itself on smaller instances, stopping at a base case.
S
- Space complexity
- How the extra memory an algorithm needs grows with input size.
- Stable sort
- A sort that keeps equal elements in their original relative order.
- Stack
- A last-in, first-out (LIFO) collection with push and pop at one end.
T
- Time complexity
- How the number of operations an algorithm performs grows with input size.
- Tree
- A hierarchical structure of nodes connected by edges, with one root and no cycles.
W
- Worst case
- The maximum work an algorithm does over all inputs of a given size.
Put these terms to work
The Data Structures and Algorithms course uses every one of these terms in short lessons with instant-feedback questions. It takes about 160 minutes and ends with a free certificate of completion.
Start the course Course overview