The Algorithms
Search any algorithm
About
Donate
Rust
GitHub repository
Backtracking
Backtracking
All Combination of Size K
More
Backtracking
Graph Coloring
More
Backtracking
Hamiltonian Cycle
More
Backtracking
Knight Tour
More
Backtracking
N Queens
More
Backtracking
Parentheses Generator
More
Backtracking
Rat in Maze
More
Backtracking
Subset Sum
More
Backtracking
Sudoku Solver
+1
More
Backtracking
Word Break
More
Big Integer
Big Integer
Fast Factorial
More
Big Integer
Poly 1305
More
Bit Manipulation
Bit Manipulation
Counting Bits
More
Bit Manipulation
Highest Set Bit
More
Bit Manipulation
N Bits Gray Code
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
Railfence
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
+3
More
Compression
Compression
Run Length Encoding
More
Compression
Run Length Encoding
More
Conversions
Conversions
Binary to Decimal
+4
More
Conversions
Binary to Hexadecimal
More
Conversions
Decimal to Binary
+5
More
Conversions
Decimal to Hexadecimal
More
Conversions
Hexa Decimal To Binary
More
Conversions
Hexadecimal to Decimal
More
Conversions
Length Conversion
More
Conversions
Octal to Binary
More
Conversions
Octal to Decimal
More
Conversions
Rgb Cmyk Conversion
More
Data Structures
Data Structures
/
Array
Permutations
More
Data Structures
/
Binary Tree
AVL Tree
+4
More
Data Structures
/
Binary Tree
Binary Search Tree
+3
More
Data Structures
/
Binary Tree
Fenwick Tree
+1
More
Data Structures
Floyds Algorithm
More
Data Structures
Graph
+1
More
Data Structures
/
Hashing
Hash Table
More
Data Structures
Heap
+1
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
Linked List
+1
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
/
Probabilistic
Count Min Sketch
More
Data Structures
Queue
+3
More
Data Structures
Range Minimum Query
More
Data Structures
Rb Tree
More
Data Structures
/
Binary Tree
Segment Tree
+4
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
+3
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
/
Stacks
Postfix Evaluation
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
/
Array
Reverse
More
Data Structures
Suffix Tree
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
+12
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
Trapped Rainwater
More
Dynamic Programming
Kadane Algorithm
More
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Catalan Numbers
More
Dynamic Programming
Factorial
+13
More
Exercism
Exercism
Isogram
More
Financial
Financial
Present Value
More
Financial
Interest
More
General
General
Hanoi
More
General
Huffman Encoding
More
General
Kmeans
More
General
Mex
More
General
/
Permutations
Steinhaus Johnson Trotter
More
General
Kmeans
More
Geometry
Geometry
Closest Points
More
Geometry
Jarvis Scan
More
Geometry
Point
More
Geometry
Polygon Points
More
Geometry
Ramer Douglas Peucker
More
Geometry
Segment
More
Graphs
Graphs
A Star
More
Graphs
Bellman Ford
+4
More
Graphs
Bipartite Matching
More
Graphs
Breadth First Search
+3
More
Graphs
Centroid Decomposition
More
Graphs
Decremental Connectivity
More
Graphs
Depth First Search
+4
More
Graphs
Depth First Search Tic Tac Toe
More
Graphs
Detect Cycle
More
Graphs
Dijkstra
+4
More
Graphs
Dinic Maxflow
More
Graphs
Eulerian Path
More
Graphs
Graph Enumeration
More
Graphs
Kosaraju
More
Graphs
Lee Breadth First Search
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
Greedy
Stable Matching
More
Greedy Methods
Greedy Methods
Fractional Knapsack
More
Hashing
Hashing
Sha 256
More
Linear Algebra
Linear Algebra
Gaussian Elimination
More
Machine Learning
Machine Learning
Cholesky
More
Machine Learning
Linear Regression
More
Machine Learning
Logistic Regression
More
Machine Learning
/
Loss Function
Average Margin Ranking Loss
More
Machine Learning
/
Loss Function
Hinge Loss
More
Machine Learning
/
Loss Function
Huber Loss
More
Machine Learning
/
Loss Function
Kl Divergence Loss
More
Machine Learning
/
Loss Function
Mean Absolute Error Loss
More
Machine Learning
/
Loss Function
Mean Squared Error Loss
More
Machine Learning
/
Loss Function
Negative Log Likelihood
More
Machine Learning
/
Optimization
Adam
More
Machine Learning
Gradient Descent
More
Machine Learning
/
Loss Function
Huber Loss
More
Math
Math
/
Matrix
Multiply
More
Math
Two Sum
More
Math
Abs
+5
More
Math
Aliquot Sum
+5
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
+1
More
Math
Chinese Remainder Theorem
More
Math
Collatz Sequence
More
Math
Combinations
More
Math
Cross Entropy Loss
More
Math
Decimal to Fraction
More
Math
Elliptic Curve
More
Math
Euclidean Distance
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
Gcd of N Numbers
More
Math
/
Series
Geometric Series
More
Math
Greatest Common Divisor
More
Math
Interquartile Range
More
Math
Karatsuba Multiplication
More
Math
LCM
+2
More
Math
Leaky Relu
More
Math
Least Square Approx
More
Math
Linear Sieve
More
Math
/
Binary
Logarithm
More
Math
Lucas Series
More
Math
Matrix Ops
More
Math
Mersenne Primes
More
Math
Miller Rabin
More
Math
Modular Exponential
More
Math
/
Numerical Analysis
Newton Raphson
More
Math
Nthprime
More
Math
Perfect Cube
More
Math
Perfect Number
+7
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
Simpsons Integration
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
Sum of Geometric Progression
More
Math
Sum of Harmonic Series
More
Math
Sylvester Sequence
More
Math
Tanh
More
Math
Trapezoidal Integration
More
Math
Trial Division
More
Math
Trig Functions
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
Neural Network
/
Activation Functions
Gaussian Error 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
+2
More
Searches
Fibonacci Search
+5
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
+2
More
Sorts
Bead Sort
+2
More
Sorts
Binary Insertion Sort
+4
More
Sorts
Bingo Sort
More
Sorts
Bitonic Sort
More
Sorts
Bogo Sort
+8
More
Sorts
Bubble Sort
+19
More
Sorts
Bucket Sort
+5
More
Sorts
Cocktail Shaker Sort
More
Sorts
Comb Sort
+8
More
Sorts
Counting Sort
+9
More
Sorts
Cycle Sort
+5
More
Sorts
Dutch National Flag Sort
More
Sorts
Exchange Sort
More
Sorts
Gnome Sort
+8
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Intro Sort
More
Sorts
Odd Even Sort
+2
More
Sorts
Pancake Sort
+7
More
Sorts
Patience Sort
+1
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
+10
More
Sorts
Sleep Sort
More
Sorts
Sort Utils
More
Sorts
Stooge Sort
+1
More
Sorts
Tim Sort
+3
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
+7
More
Strings
Isomorphism
More
Strings
Jaro Winkler Distance
More
Strings
Knuth Morris Pratt
More
Strings
Levenshtein Distance
+2
More
Strings
Lipogram
More
Strings
Manacher
More
Strings
Palindrome
+2
More
Strings
Pangram
More
Strings
Rabin Karp
+2
More
Strings
Shortest Palindrome
More
Strings
Suffix Array
More
Strings
Suffix Array Manber Myers
More
Strings
Z Algorithm
More
Structure
Structure
/
Tree
Btree
More
© The Algorithms 2024
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact