The Algorithms logo
The Algorithms
AboutDonate
Backtracking
Ciphers

Vigenere

Theoretical Rot 13

Polybius

Transposition

Another Rot 13

Morse Code

Data Structures
Divide and Conquer
Dynamic Programming

Longest Increasing Subsequence

Maximum Subarray

Longest Continuous Increasing Subsequence

Fibonacci Numbers

Longest Common Subsequence

General

Huffman Encoding

Geometry

Closest Points

Graphs

Centroid Decomposition

Depth First Search

Breadth First Search

Disjoint Set Union

Prufer Code

Strongly Connected Components

Bellman Ford

Dinic Maxflow

Minimum Spanning Tree

Depth First Search Tic Tac Toe

Dijkstra

Graph Enumeration

Two Satisfiability

Hashing
Math

Two Sum

Miller Rabin

Quadratic Residue

Sieve of Eratosthenes

Pascal Triangle

Prime Factors

Pollard Rho

Zellers Congruence Algorithm

Prime Check

Prime Numbers

Greatest Common Divisor

Perfect Numbers

Simpson Integration

Karatsuba Multiplication

Lcm of N Numbers

Baby Step Giant Step

Fast Power

Nthprime

Extended Euclidean Algorithm

Linear Sieve

Trial Division

Square Root

Gcd of N Numbers

Armstrong Number

Matrix Ops

Random

Numerical Analysis

Gaussian Elimination

Numerical Methods

Fast Fourier Transform

Range Queries

Heavy Light Decomposition

Searches

Kth Smallest

Binary Search

+12

More

Exponential Search

Interpolation Search

Fibonacci Search

Ternary Search

Kth Smallest Heap

Linear Search

+11

More

Ternary Search Min Max

Jump Search

Quick Select

Ternary Search Min Max Recursive

Binary Search Recursive

Ternary Search Recursive

Union Find

Sorts

Gnome Sort

Insertion Sort

+16

More

Cycle Sort

Cocktail Shaker Sort

Tim Sort

Comb Sort

Bogo Sort

Odd Even Sort

Radix Sort

Selection Sort

+13

More

Pancake Sort

Exchange Sort

Counting Sort

Quick Sort

+17

More

Pigeonhole Sort

Bubble Sort

+17

More

Shell Sort

Bucket Sort

Merge Sort

+17

More

Heap Sort

+13

More

Stooge Sort

Topological Sort

Strings

Hamming Distance

Z Algorithm

Manacher

Burrows Wheeler Transform

Aho Corasick

Knuth Morris Pratt

Rabin Karp