The Algorithms
Search any algorithm
About
Donate
Rust
GitHub repository
Backtracking
Backtracking
N Queens
More
Backtracking
All Combination of Size K
More
Backtracking
Sudoku Solver
+1
More
Big Integer
Big Integer
Poly 1305
More
Big Integer
Hello Bigmath
More
Big Integer
Fast Factorial
More
Blockchain
Blockchain
Chinese Remainder Theorem
More
Ciphers
Ciphers
Base 64
More
Ciphers
Sha 3
More
Ciphers
Salsa
More
Ciphers
Chacha
More
Ciphers
Caesar
More
Ciphers
Another Rot 13
More
Ciphers
Transposition
More
Ciphers
AES
More
Ciphers
Morse Code
More
Ciphers
Rail Fence
More
Ciphers
Vigenere
More
Ciphers
Blake 2b
More
Ciphers
Kerninghan
More
Ciphers
Theoretical Rot 13
More
Ciphers
Hashing Traits
More
Ciphers
Rot 13
More
Ciphers
Polybius
More
Ciphers
Tea
More
Ciphers
Diffie Hellman
More
Ciphers
XOR Cipher
+2
More
Compression
Compression
Run Length Encoding
More
Compression
Run Length Encoding
More
Conversions
Conversions
Decimal to Binary
+4
More
Conversions
Binary to Decimal
+3
More
Data Structures
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
Heap
+1
More
Data Structures
/
Binary Tree
Segment Tree
+3
More
Data Structures
Rb Tree
More
Data Structures
/
Probabilistic
Count Min Sketch
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
Segment Tree Recursive
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
Heap
+1
More
Data Structures
B Tree
More
Data Structures
Graph
More
Data Structures
Queue
+1
More
Data Structures
Veb Tree
More
Data Structures
Linked List
+1
More
Data Structures
Trie
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
/
Binary Tree
Binary Search Tree
+3
More
Data Structures
/
Binary Tree
Treap
More
Data Structures
/
Stacks
Stack with Singly Linked List
+3
More
Data Structures
/
Array
Reverse
More
Divide and Conquer
Divide and Conquer
Mergesort
+18
More
Divide and Conquer
Convex Hull
More
Dynamic Programming
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Coin Change
+4
More
Dynamic Programming
Matrix Chain Multiply
More
Dynamic Programming
Maximal Square
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Common Substring
More
Dynamic Programming
Longest Continuous Increasing Subsequence
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Snail
More
Dynamic Programming
Subset Generation
More
Dynamic Programming
Maximum Subarray
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Is Subsequence
More
Financial
Financial
Interest
More
General
General
/
Permutations
Steinhaus Johnson Trotter
More
General
Huffman Encoding
More
General
Mex
More
General
Kmeans
More
General
Hanoi
More
Geometry
Geometry
Segment
More
Geometry
Jarvis Scan
More
Geometry
Closest Points
More
Geometry
Point
More
Graphs
Graphs
Prufer Code
More
Graphs
Bipartite Matching
More
Graphs
Depth First Search
+4
More
Graphs
Bellman Ford
+3
More
Graphs
Centroid Decomposition
More
Graphs
A Star
More
Graphs
Breadth First Search
+3
More
Graphs
Graph Enumeration
More
Graphs
Prim
More
Graphs
Two Satisfiability
More
Graphs
Dijkstra
+3
More
Graphs
Depth First Search Tic Tac Toe
More
Graphs
Disjoint Set Union
More
Graphs
Dinic Maxflow
More
Graphs
Minimum Spanning Tree
More
Graphs
Strongly Connected Components
More
Greedy Methods
Greedy Methods
Fractional Knapsack
More
Hashing
Hashing
Sha 256
More
Math
Math
Fibonacci Numbers
+10
More
Math
Two Sum
More
Math
Armstrong Number
+7
More
Math
Factors
More
Math
Square Root
More
Math
Amicable Numbers
More
Math
Greatest Common Divisor
More
Math
Binary Exponentiation
More
Math
Sieve of Eratosthenes
+4
More
Math
Prime
+7
More
Math
Perfect Number
+4
More
Math
Prime
+7
More
Math
LCM
+2
More
Math
Gcd of N Numbers
More
Math
Karatsuba Multiplication
More
Math
Extended Euclidean Algorithm
More
Math
Prime Factors
More
Math
Simpson Integration
More
Math
Pollard Rho
More
Math
Baby Step Giant Step
More
Math
Quadratic Residue
More
Math
Signum
More
Math
Ceil
More
Math
Aliquot Sum
+4
More
Math
Miller Rabin
More
Math
Abs
+5
More
Math
Random
More
Math
Sum of Digits
+1
More
Math
Newton Raphson
More
Math
Matrix Ops
More
Math
Zellers Congruence Algorithm
More
Math
Bell Numbers
More
Math
Faster Perfect Numbers
More
Math
Nthprime
More
Math
Sine
More
Math
Trial Division
More
Math
Mersenne Primes
More
Math
Linear Sieve
More
Math
Collatz Sequence
More
Math
Fast Power
More
Matrix
Matrix
Pascal Triangle
More
Navigation
Navigation
Bearing
More
Navigation
Haversine
More
Number Theory
Number Theory
Kth Factor
More
Numerical Analysis
Numerical Analysis
Gaussian Elimination
More
Numerical Methods
Numerical Methods
Fast Fourier Transform
More
Others
Others
Doomsday
More
Others
Graham Scan
More
Range Queries
Range Queries
Heavy Light Decomposition
More
Searches
Searches
Interpolation
More
Searches
Union Find
More
Searches
Ternary Search
+5
More
Searches
Interpolation Search
+5
More
Searches
Linear Search
+13
More
Searches
Fibonacci Search
+4
More
Searches
Quick Select
More
Searches
Exponential Search
More
Searches
Jump Search
+8
More
Searches
Kth Smallest Heap
More
Searches
Ternary Search Min Max Recursive
More
Searches
Ternary Search Min Max
More
Searches
Kth Smallest
More
Searches
Binary Search Recursive
More
Searches
Ternary Search Recursive
More
Searches
Binary Search
+14
More
Sorts
Sorts
Topological Sort
+1
More
Sorts
Odd Even Sort
More
Sorts
Dutch National Flag Sort
More
Sorts
Cycle Sort
+4
More
Sorts
Sleep Sort
More
Sorts
Selection Sort
+13
More
Sorts
Pancake Sort
+5
More
Sorts
Exchange Sort
More
Sorts
Comb Sort
+7
More
Sorts
Shell Sort
+8
More
Sorts
Bogo Sort
+5
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Stooge Sort
More
Sorts
Insertion Sort
+17
More
Sorts
Cocktail Shaker Sort
More
Sorts
Bitonic Sort
More
Sorts
Bead Sort
+2
More
Sorts
Bucket Sort
+4
More
Sorts
Counting Sort
+6
More
Sorts
Heap Sort
+12
More
Sorts
Gnome Sort
+7
More
Sorts
Wiggle Sort
More
Sorts
Tim Sort
+1
More
Sorts
Bubble Sort
+18
More
Sorts
Quick Sort
+18
More
Sorts
Patience Sort
More
Sorts
Radix Sort
+8
More
Sorts
Fisher Yates Shuffle
More
Strings
Strings
/
Searches
Naive
More
Strings
Genetic
More
Strings
Knuth Morris Pratt
More
Strings
Z Algorithm
More
Strings
Palindrome
+2
More
Strings
Burrows Wheeler Transform
More
Strings
Suffix Tree
More
Strings
Jaro Winkler Distance
More
Strings
Anagram
More
Strings
Levenshtein Distance
+2
More
Strings
Duval Algorithm
More
Strings
Boyer Moore Search
More
Strings
Hamming Distance
+4
More
Strings
Autocomplete Using Trie
More
Strings
Manacher
More
Strings
Aho Corasick
More
Strings
Suffix Array
More
Strings
Rabin Karp
+1
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
Twitter
Source code
Contact