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