The Algorithms
Search any algorithm
About
Donate
Rust
GitHub repository
Backtracking
Backtracking
All Combination of Size K
More
Backtracking
N Queens
More
Backtracking
Sudoku Solver
+1
More
Big Integer
Big Integer
Fast Factorial
More
Big Integer
Hello Bigmath
More
Big Integer
Poly 1305
More
Bit Manipulation
Bit Manipulation
Counting Bits
More
Bit Manipulation
Highest Set Bit
More
Bit Manipulation
Sum of Two Integers
More
Ciphers
Ciphers
AES
More
Ciphers
Another Rot 13
More
Ciphers
Baconian Cipher
More
Ciphers
Base 64
More
Ciphers
Blake 2b
More
Ciphers
Caesar
More
Ciphers
Chacha
More
Ciphers
Diffie Hellman
More
Ciphers
Hashing Traits
More
Ciphers
Kerninghan
More
Ciphers
Morse Code
More
Ciphers
Polybius
More
Ciphers
Rail Fence
More
Ciphers
Rot 13
More
Ciphers
Salsa
More
Ciphers
Sha 3
More
Ciphers
Tea
More
Ciphers
Theoretical Rot 13
More
Ciphers
Transposition
More
Ciphers
Vigenere
More
Ciphers
XOR Cipher
+2
More
Compression
Compression
Run Length Encoding
More
Compression
Run Length Encoding
More
Conversions
Conversions
Binary to Decimal
+3
More
Conversions
Binary to Hexadecimal
More
Conversions
Decimal to Binary
+4
More
Conversions
Hexa Decimal To Binary
More
Conversions
Octal to Binary
More
Data Structures
Data Structures
/
Array
Permutations
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
B Tree
More
Data Structures
/
Binary Tree
Binary Search Tree
+3
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
Floyds Algorithm
More
Data Structures
Graph
More
Data Structures
Heap
+1
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
Linked List
+1
More
Data Structures
/
Stacks
Postfix Evaluation
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
/
Probabilistic
Count Min Sketch
More
Data Structures
Queue
+1
More
Data Structures
Rb Tree
More
Data Structures
/
Binary Tree
Segment Tree
+3
More
Data Structures
Segment Tree Recursive
More
Data Structures
/
Stacks
Stack with Singly Linked List
+3
More
Data Structures
/
Binary Tree
Treap
More
Data Structures
Trie
More
Data Structures
Veb Tree
More
Data Structures
Heap
+1
More
Data Structures
Disjoint Set Union
More
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
/
Array
Reverse
More
Divide and Conquer
Divide and Conquer
Convex Hull
More
Divide and Conquer
Mergesort
+19
More
Dynamic Programming
Dynamic Programming
Coin Change
+6
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Fibonacci Numbers
+11
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Longest Common Substring
More
Dynamic Programming
Longest Continuous Increasing Subsequence
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Matrix Chain Multiply
More
Dynamic Programming
Maximal Square
More
Dynamic Programming
Maximum Subarray
More
Dynamic Programming
Minimum Cost Path
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Snail
More
Dynamic Programming
Subset Generation
More
Dynamic Programming
Kadane Algorithm
More
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Catalan Numbers
More
Financial
Financial
Interest
More
General
General
Hanoi
More
General
Huffman Encoding
More
General
Kmeans
More
General
Mex
More
General
/
Permutations
Steinhaus Johnson Trotter
More
Geometry
Geometry
Closest Points
More
Geometry
Jarvis Scan
More
Geometry
Point
More
Geometry
Segment
More
Graphs
Graphs
A Star
More
Graphs
Bellman Ford
+3
More
Graphs
Bipartite Matching
More
Graphs
Breadth First Search
+3
More
Graphs
Centroid Decomposition
More
Graphs
Depth First Search
+4
More
Graphs
Depth First Search Tic Tac Toe
More
Graphs
Dijkstra
+3
More
Graphs
Dinic Maxflow
More
Graphs
Eulerian Path
More
Graphs
Graph Enumeration
More
Graphs
Kosaraju
More
Graphs
Lee
More
Graphs
Minimum Spanning Tree
More
Graphs
Prim
More
Graphs
Prufer Code
More
Graphs
Strongly Connected Components
More
Graphs
Tarjans Ssc
More
Graphs
Two Satisfiability
More
Greedy Methods
Greedy Methods
Fractional Knapsack
More
Hashing
Hashing
Sha 256
More
Linear Algebra
Linear Algebra
Gaussian Elimination
More
Machine Learning
Machine Learning
Linear Regression
More
Machine Learning
/
Loss Function
Mae Loss
More
Machine Learning
/
Loss Function
Mse Loss
More
Machine Learning
/
Optimization
Adam
More
Machine Learning
Gradient Descent
More
Math
Math
Two Sum
More
Math
Abs
+5
More
Math
Aliquot Sum
+4
More
Math
Amicable Numbers
More
Math
Area of Polygon
More
Math
Area Under Curve
More
Math
/
Special Numbers
Armstrong Number
+8
More
Math
Average
More
Math
Baby Step Giant Step
More
Math
/
Special Numbers
Bell Numbers
More
Math
Binary Exponentiation
More
Math
Binomial Coefficient
+1
More
Math
Ceil
More
Math
Chinese Remainder Theorem
More
Math
Collatz Sequence
More
Math
Cross Entropy Loss
More
Math
Elliptic Curve
More
Math
Extended Euclidean Algorithm
More
Math
Factors
More
Math
Fast Power
More
Math
Faster Perfect Numbers
More
Math
Field
More
Math
Frizzy Number
More
Math
Gaussian Error Linear Unit
More
Math
Gcd of N Numbers
More
Math
/
Series
Geometric Series
More
Math
Greatest Common Divisor
More
Math
Huber Loss
More
Math
Karatsuba Multiplication
More
Math
LCM
+2
More
Math
Leaky Relu
More
Math
Linear Sieve
More
Math
Matrix Ops
More
Math
Mersenne Primes
More
Math
Miller Rabin
More
Math
/
Numerical Analysis
Newton Raphson
More
Math
Nthprime
More
Math
Perfect Number
+5
More
Math
Perfect Square
+3
More
Math
Pollard Rho
More
Math
Prime Factors
More
Math
Quadratic Residue
More
Math
Random
More
Math
Relu
More
Math
Sieve of Eratosthenes
+4
More
Math
Sigmoid
More
Math
Signum
More
Math
Simpson Integration
More
Math
Sine
More
Math
Softmax
More
Math
Sprague Grundy Theorem
More
Math
Square Pyramidal Numbers
More
Math
/
Numerical Analysis
Square Root
More
Math
Sum of Digits
+1
More
Math
Tanh
More
Math
Trial Division
More
Math
Vector Cross Product
More
Math
Zellers Congruence Algorithm
More
Matrix
Matrix
Pascal Triangle
More
Navigation
Navigation
Bearing
More
Navigation
Haversine
More
Networking Flow
Networking Flow
Ford Fulkerson
More
Neural Network
Neural Network
/
Activation Functions
Exponential Linear Unit
More
Number Theory
Number Theory
Compute Totient
More
Number Theory
Kth Factor
More
Numerical Methods
Numerical Methods
Fast Fourier Transform
More
Others
Others
Graham Scan
More
Others
Doomsday
More
Range Queries
Range Queries
Heavy Light Decomposition
More
Searches
Searches
Union Find
+1
More
Searches
Interpolation
More
Searches
Binary Search
+15
More
Searches
Binary Search Recursive
More
Searches
Exponential Search
More
Searches
Fibonacci Search
+4
More
Searches
Interpolation Search
+6
More
Searches
Jump Search
+8
More
Searches
Kth Smallest
More
Searches
Kth Smallest Heap
More
Searches
Linear Search
+14
More
Searches
Moore Voting
More
Searches
Quick Select
More
Searches
Saddleback Search
More
Searches
Ternary Search
+5
More
Searches
Ternary Search Min Max
More
Searches
Ternary Search Min Max Recursive
More
Searches
Ternary Search Recursive
More
Sorts
Sorts
Fisher Yates Shuffle
More
Sorts
Topological Sort
+1
More
Sorts
Bead Sort
+2
More
Sorts
Binary Insertion Sort
+4
More
Sorts
Bitonic Sort
More
Sorts
Bogo Sort
+7
More
Sorts
Bubble Sort
+19
More
Sorts
Bucket Sort
+5
More
Sorts
Cocktail Shaker Sort
More
Sorts
Comb Sort
+8
More
Sorts
Counting Sort
+8
More
Sorts
Cycle Sort
+5
More
Sorts
Dutch National Flag Sort
More
Sorts
Exchange Sort
More
Sorts
Gnome Sort
+7
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Intro Sort
More
Sorts
Odd Even Sort
+1
More
Sorts
Pancake Sort
+6
More
Sorts
Patience Sort
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Quick Sort
+19
More
Sorts
Quick Sort 3 Ways
More
Sorts
Radix Sort
+9
More
Sorts
Selection Sort
+14
More
Sorts
Shell Sort
+9
More
Sorts
Sleep Sort
More
Sorts
Sort Utils
More
Sorts
Stooge Sort
+1
More
Sorts
Tim Sort
+2
More
Sorts
Tree Sort
More
Sorts
Wave Sort
More
Sorts
Wiggle Sort
More
Stacks
Stacks
Infix To Postfix
More
Strings
Strings
Issubsequence
More
Strings
Genetic
More
Strings
/
Searches
Naive
More
Strings
Aho Corasick
More
Strings
Anagram
More
Strings
Autocomplete Using Trie
More
Strings
Boyer Moore Search
More
Strings
Burrows Wheeler Transform
More
Strings
Duval Algorithm
More
Strings
Hamming Distance
+4
More
Strings
Jaro Winkler Distance
More
Strings
Knuth Morris Pratt
More
Strings
Levenshtein Distance
+2
More
Strings
Manacher
More
Strings
Palindrome
+2
More
Strings
Rabin Karp
+2
More
Strings
Suffix Array
More
Strings
Suffix Array Manber Myers
More
Strings
Suffix Tree
More
Strings
Z Algorithm
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact