The Algorithms
Search any algorithm
About
Donate
Rust
GitHub repository
undefined
Knapsack
More
Backtracking
Backtracking
N Queens
More
Big Integer
Big Integer
Hello Bigmath
More
Big Integer
Poly 1305
More
Blockchain
Blockchain
Chinese Remainder Theorem
More
Ciphers
Ciphers
Salsa
More
Ciphers
Transposition
More
Ciphers
Another Rot 13
More
Ciphers
Hashing Traits
More
Ciphers
Tea
More
Ciphers
Morse Code
More
Ciphers
Rot 13
More
Ciphers
Chacha
More
Ciphers
Vigenere
More
Ciphers
AES
More
Ciphers
Polybius
More
Ciphers
Xor
More
Ciphers
Theoretical Rot 13
More
Ciphers
Caesar
More
Data Structures
Data Structures
Graph
More
Data Structures
Heap
More
Data Structures
/
Binary Tree
Binary Search Tree
+1
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Stacks
Stack with Singly Linked List
+2
More
Data Structures
/
Binary Tree
AVL Tree
+1
More
Data Structures
/
Binary Tree
Segment Tree
More
Data Structures
Trie
More
Data Structures
Rb Tree
More
Data Structures
B Tree
More
Data Structures
Linked List
More
Data Structures
Queue
More
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Divide and Conquer
Divide and Conquer
Convex Hull
More
Divide and Conquer
Mergesort
+17
More
Dynamic Programming
Dynamic Programming
Floyd Warshall
+1
More
Dynamic Programming
Coin Change
+4
More
Dynamic Programming
Snail
More
Dynamic Programming
Longest Continuous Increasing Subsequence
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Common Subsequence
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Is Subsequence
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Maximal Square
More
Dynamic Programming
Maximum Subarray
More
Dynamic Programming
Edit Distance
+2
More
Financial
Financial
Interest
More
General
General
Hanoi
More
General
Kmeans
More
General
Huffman Encoding
More
Geometry
Geometry
Closest Points
More
Graphs
Graphs
Centroid Decomposition
More
Graphs
Dijkstra
+2
More
Graphs
Bipartite Matching
More
Graphs
Breadth First Search
+2
More
Graphs
Dinic Maxflow
More
Graphs
Strongly Connected Components
More
Graphs
Graph Enumeration
More
Graphs
Two Satisfiability
More
Graphs
Disjoint Set Union
More
Graphs
Prufer Code
More
Graphs
Prim
More
Graphs
Depth First Search
+3
More
Graphs
Minimum Spanning Tree
More
Graphs
Depth First Search Tic Tac Toe
More
Graphs
Bellman Ford
+2
More
Hashing
Hashing
Sha 256
More
Math
Math
Two Sum
More
Math
Quadratic Residue
More
Math
Miller Rabin
More
Math
Perfect Numbers
More
Math
Greatest Common Divisor
More
Math
Simpson Integration
More
Math
Random
More
Math
Karatsuba Multiplication
More
Math
Faster Perfect Numbers
More
Math
Prime Factors
More
Math
Square Root
More
Math
Linear Sieve
More
Math
Prime Check
+2
More
Math
Amicable Numbers
More
Math
Extended Euclidean Algorithm
More
Math
Sieve of Eratosthenes
+3
More
Math
Trial Division
More
Math
Mersenne Primes
More
Math
Gcd of N Numbers
More
Math
Prime Numbers
More
Math
Matrix Ops
More
Math
Pollard Rho
More
Math
Zellers Congruence Algorithm
More
Math
Pascal Triangle
More
Math
Lcm of N Numbers
More
Math
Nthprime
More
Math
Fast Power
More
Math
Baby Step Giant Step
More
Math
Armstrong Number
+2
More
Math
Fibonacci Numbers
+9
More
Numerical Analysis
Numerical Analysis
Newton Raphson
More
Numerical Analysis
Gaussian Elimination
More
Numerical Methods
Numerical Methods
Fast Fourier Transform
More
Range Queries
Range Queries
Heavy Light Decomposition
More
Searches
Searches
Union Find
More
Searches
Ternary Search Recursive
More
Searches
Quick Select
More
Searches
Linear Search
+11
More
Searches
Fibonacci Search
+4
More
Searches
Ternary Search Min Max
More
Searches
Binary Search Recursive
More
Searches
Ternary Search Min Max Recursive
More
Searches
Jump Search
+7
More
Searches
Kth Smallest Heap
More
Searches
Ternary Search
+4
More
Searches
Binary Search
+12
More
Searches
Exponential Search
More
Searches
Interpolation Search
+3
More
Searches
Kth Smallest
More
Sorts
Sorts
Heap Sort
+13
More
Sorts
Odd Even Sort
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Sleep Sort
More
Sorts
Quick Sort
+17
More
Sorts
Bubble Sort
+17
More
Sorts
Pancake Sort
+4
More
Sorts
Exchange Sort
More
Sorts
Cycle Sort
+2
More
Sorts
Selection Sort
+13
More
Sorts
Radix Sort
+8
More
Sorts
Comb Sort
+8
More
Sorts
Bucket Sort
+3
More
Sorts
Counting Sort
+6
More
Sorts
Shell Sort
+7
More
Sorts
Gnome Sort
+5
More
Sorts
Bogo Sort
+4
More
Sorts
Cocktail Shaker Sort
More
Sorts
Tim Sort
+1
More
Sorts
Stooge Sort
More
Sorts
Insertion Sort
+16
More
Sorts
Topological Sort
More
Strings
Strings
Burrows Wheeler Transform
More
Strings
Reverse
More
Strings
Run Length Encoding
More
Strings
Z Algorithm
More
Strings
Suffix Array
More
Strings
Manacher
More
Strings
Aho Corasick
More
Strings
Hamming Distance
+2
More
Strings
Suffix Tree
More
Strings
Knuth Morris Pratt
More
Strings
Rabin Karp
+1
More
© The Algorithms 2022
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
Twitter
Source code
Contact