Algorithm Catalog.
Search, filter, and launch interactive step-by-step visualizations across all core computer science domains.
Bubble Sort
Compares adjacent items and swaps them until the largest bubble to the top. Terminates early if already sorted.
Selection Sort
Finds the minimum item in the unsorted suffix and swaps it to the front of the unsorted segment.
Insertion Sort
Builds sorted array one element at a time by shifting larger elements right and inserting current element into place.
Quick Sort
Divide-and-conquer strategy choosing a pivot element and partitioning the array around it.
Merge Sort
Recursively divides array into two halves, sorts each half, and merges the two sorted sequences.
Heap Sort
Builds a max heap from the array, then repeatedly extracts the root maximum to the end of the array.
Counting Sort
Non-comparison integer sorting algorithm that tallies frequencies of keys in a fixed range.
Radix Sort
Sorts integers digit by digit from least significant to most significant using stable counting sort as subroutine.
Shell Sort
Generalization of insertion sort that allows exchanges of items that are far apart using a diminishing gap sequence.
Linear Search
Scans each item one by one from left to right. Works on any arbitrary, unsorted array.
Binary Search
Divides search interval in half each iteration. Requires the array to be sorted.
Jump Search
Jumps ahead by fixed block steps of size √n, then performs linear search within the target block.
Interpolation Search
Estimates target position based on value distribution in uniformly distributed sorted data.
Breadth-First Search (BFS)
Explores vertices layer by layer outward from source using a FIFO queue. Finds shortest path in unweighted graphs.
Depth-First Search (DFS)
Explores as deep as possible along each branch before backtracking using a LIFO stack or recursion.
Dijkstra's Algorithm
Greedy shortest-path algorithm using a Binary Min-Heap Priority Queue. Requires non-negative edge weights.
A* Pathfinding Algorithm
Heuristic-guided search algorithm using f(n) = g(n) + h(n) where g is distance from start and h is estimated Euclidean distance to goal.
Bellman-Ford Algorithm
Finds shortest paths from single source even with negative weights. Detects negative-weight cycles.
Kruskal's MST Algorithm
Greedy Minimum Spanning Tree algorithm using Disjoint Set Union (Union-Find) with path compression.
0/1 Knapsack Problem
Determines maximum value of items fitting within a fixed weight capacity W using a 2D dynamic programming grid.
Coin Change Problem
Finds fewest coins needed to make up a given amount using bottom-up tabulations.
Longest Common Subsequence (LCS)
Finds longest subsequence present in both strings in the same order (not necessarily contiguous).
Knuth-Morris-Pratt (KMP)
Precomputes longest proper prefix-suffix (pi) table to skip redundant character comparisons upon mismatch.
Rabin-Karp Rolling Hash
Uses rolling polynomial hash function to filter candidate substring positions in O(1) expected time.
N-Queens Solver
Places N non-attacking queens on an N×N chessboard using recursive depth exploration and row/diagonal conflict pruning.
Sudoku Solver
Solves 9x9 puzzles by recursively placing digits 1-9 in empty cells and pruning whenever row, column, or 3x3 box constraints fail.