The Algorithms
Search any algorithm
About
C++
GitHub repository
Documentation
Backtracking
Backtracking
Minimax
More
Backtracking
Magic Sequence
More
Backtracking
Subset Sum
More
Backtracking
Graph Coloring
More
Backtracking
Subarray Sum
More
Backtracking
Wildcard Matching
More
Backtracking
Sudoku Solve
More
Backtracking
Knight Tour
More
Backtracking
N Queens All Solution Optimised
More
Backtracking
Nqueen Print All Solutions
More
Backtracking
Rat Maze
More
Backtracking
N Queens
More
Bit Manipulation
Bit Manipulation
Count of Set Bits
More
Bit Manipulation
Count of Trailing Ciphers in Factorial N
More
Blockchain
Blockchain
Modular Division
More
Ciphers
Ciphers
Uint256 T
More
Ciphers
Base64 Encoding
More
Ciphers
Uint128 T
More
Ciphers
Caesar Cipher
More
Ciphers
Elliptic Curve Key Exchange
More
Ciphers
Hill Cipher
More
Ciphers
Morse Code
More
Ciphers
Xor Cipher
More
Ciphers
Vigenere Cipher
More
Compression
Compression
Huffman
More
Conversions
Conversions
Decimal to Binary
+1
More
Conversions
Decimal to Hexadecimal
More
Data Structures
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
Circular Queue Using Linked List
More
Data Structures
Rb Tree
More
Data Structures
Stack Using Linked List
More
Data Structures
/
Queue
Queue
More
Data Structures
List Array
More
Data Structures
/
Linked List
Doubly Linked List
+3
More
Data Structures
Morrisinorder
More
Data Structures
Binaryheap
More
Data Structures
/
Disjoint Set
Disjoint Set
More
Data Structures
Queue Using Two Stacks
More
Data Structures
Queue Using Array
More
Data Structures
Trie Tree
More
Data Structures
/
Linked List
Skip List
More
Data Structures
Queue Using Linked List
More
Data Structures
/
Cll
Main Cll
More
Data Structures
/
Cll
Cll
More
Data Structures
/
Cll
Cll
More
Data Structures
Trie Using Hashmap
More
Data Structures
Tree
More
Data Structures
Linked List
More
Data Structures
Queue Using Linked List
More
Data Structures
Queue Using Array2
More
Data Structures
Sparse Table
More
Data Structures
/
Stacks
Stack
More
Data Structures
Tree 234
More
Data Structures
Stack Using Array
More
Data Structures
/
Binary Tree
Binary Search Tree
+2
More
Data Structures
Linkedlist Implentation Usingarray
More
Data Structures
/
Binary Tree
Avl Tree
More
Data Structures
Trie Modern
More
Data Structures
Binary Search Tree2
More
Data Structures
Sparse Table
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Stacks
Postfix Evaluation
More
Data Structures
/
Linked List
Circular Linked List
More
Divide and Conquer
Divide and Conquer
Karatsuba Algorithm for Fast Multiplication
More
Dynamic Programming
Dynamic Programming
Knapsack
More
Dynamic Programming
Matrix Chain Multiplication
More
Dynamic Programming
Longest Common String
More
Dynamic Programming
Tree Height
More
Dynamic Programming
Word Break
More
Dynamic Programming
Longest Common Subsequence
More
Dynamic Programming
Egg Dropping Puzzle
More
Dynamic Programming
Searching of Element in Dynamic Array
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Increasing Subsequence (Nlogn)
More
Dynamic Programming
Floyd Warshall
More
Dynamic Programming
Minimum Edit Distance
More
Dynamic Programming
Abbreviation
More
Dynamic Programming
0 1 Knapsack
More
Dynamic Programming
House Robber
More
Dynamic Programming
Catalan Numbers
More
Dynamic Programming
Palindrome Partitioning
More
Dynamic Programming
Coin Change Topdown
More
Dynamic Programming
Coin Change
More
Dynamic Programming
Kadane2
More
Dynamic Programming
Fibonacci Bottom Up
More
Dynamic Programming
Kadane
More
Dynamic Programming
Edit Distance
+1
More
Dynamic Programming
Cut Rod
More
Dynamic Programming
LongestPalindromicSubsequence
More
Dynamic Programming
Factorial
+7
More
Geometry
Geometry
Jarvis Algorithm
More
Geometry
Line Segment Intersection
More
Graphics
Graphics
Spirograph
More
Graphs
Graphs
Dijkstra
More
Graphs
Bellman Ford
More
Graphs
Depth First Search
More
Graphs
Hamiltons Cycle
More
Graphs
Hopcroft Karp
More
Graphs
Prim
More
Graphs
Kosaraju
More
Graphs
Max Flow with Ford Fulkerson and Edmond Karp Algo
More
Graphs
Connected Components with Dsu
More
Graphs
Dijkstra
More
Graphs
Is Graph Bipartite
More
Graphs
Kruskal
More
Graphs
Depth First Search with Stack
More
Graphs
Connected Components
More
Graphs
Breadth First Search
More
Graphs
Bridge Finding with Tarjan Algorithm
More
Graphs
Topological Sort by Kahns Algo
More
Graphs
Bidirectional Dijkstra
More
Graphs
Cycle Check Directed Graph
More
Greedy Algorithms
Greedy Algorithms
Jumpgame
More
Greedy Algorithms
Kruskals Minimum Spanning Tree
More
Greedy Algorithms
Prims Minimum Spanning Tree
More
Hashing
Hashing
Double Hash Hash Table
More
Hashing
Chaining
More
Hashing
Linear Probing Hash Table
More
Hashing
Quadratic Probing Hash Table
More
Linear Algebra
Linear Algebra
Gram Schmidt
More
Machine Learning
Machine Learning
Kohonen Som Topology
More
Machine Learning
Vector Ops
More
Machine Learning
A Star Search
More
Machine Learning
Ordinary Least Squares Regressor
More
Machine Learning
Kohonen Som Trace
More
Machine Learning
Neural Network
More
Machine Learning
Adaline Learning
More
Math
Math
ArmstrongNumber
More
Math
Qr Decomposition
More
Math
Runge Kutta
More
Math
Check Prime
More
Math
Power of Two
More
Math
Prime Numbers
More
Math
Largest Power
More
Math
String Fibonacci
More
Math
Complex Numbers
More
Math
Gcd Iterative Euclidean
More
Math
Magic Number
More
Math
Ncr Modulo P
More
Math
Fibonacci Matrix Exponentiation
More
Math
Gcd of N Numbers
More
Math
Vector Cross Product
More
Math
Fibonacci Sum
More
Math
Sum of Binomial Coefficient
More
Math
Large Factorial
More
Math
Check Factorial
More
Math
Integral Approximation
More
Math
Realtime Stats
More
Math
Sqrt Double
More
Math
Miller Rabin
More
Math
Sieve of Eratosthenes
+1
More
Math
Double Factorial
More
Math
Linear Recurrence Matrix
More
Math
Gcd Recursive Euclidean
More
Math
Power for Huge Numbers
More
Math
Extended Euclid Algorithm
More
Math
Modular Inverse Fermat Little Theorem
More
Math
ArmstrongNumber
More
Math
Least Common Multiple
More
Math
N Bonacci
More
Math
Primes up to Billion
More
Math
Fibonacci Fast
More
Math
Check Amicable Pair
More
Math
Modular Exponentiation
More
Math
Binomial Calculate
More
Math
EulersTotientFunction
More
Math
Number of Positive Divisors
More
Math
Sum of Digits
More
Math
Lcm Sum
More
Math
N Choose R
More
Math
Large Number
More
Math
Prime Factorization
More
Math
Fibonacci Large
More
Math
Binary Exponent
More
Math
Fast Power
More
Math
Fibonacci Numbers
+8
More
Math
PascalTriangle
More
Math
Matrix Exponentiation
More
Matrix
Matrix
Spiral Print
More
Numerical Analysis
Numerical Analysis
Gaussian Elimination
More
Numerical Analysis
Lu Decomposition
More
Numerical Methods
Numerical Methods
Qr Eigen Values
More
Numerical Methods
Ode Midpoint Euler
More
Numerical Methods
Golden Search Extrema
More
Numerical Methods
Brent Method Extrema
More
Numerical Methods
Ode Semi Implicit Euler
More
Numerical Methods
Qr Decompose
More
Numerical Methods
Durand Kerner Roots
More
Numerical Methods
False Position
More
Numerical Methods
Bisection Method
More
Numerical Methods
Lu Decompose
More
Numerical Methods
Ode Forward Euler
More
Numerical Methods
Successive Approximation
More
Numerical Methods
Newton Raphson Method
More
Operations on Datastructures
Operations on Datastructures
Intersection of 2 Arrays
More
Operations on Datastructures
Inorder Successor of Bst
More
Operations on Datastructures
Selectionsortlinkedlist
More
Operations on Datastructures
Get Size of Linked List
More
Operations on Datastructures
Array Left Rotation
More
Operations on Datastructures
Circular Queue Using Array
More
Operations on Datastructures
Reverse a Linked List Using Recusion
More
Operations on Datastructures
Array Right Rotation
More
Operations on Datastructures
Union of 2 Arrays
More
Operations on Datastructures
Trie Multiple Search
More
Others
Others
Vector Important Functions
More
Others
Iterative Tree Traversals
More
Others
Tower of Hanoi
More
Others
Palindrome of Number
More
Others
Sparse Matrix
More
Others
Stairs Pattern
More
Others
Smallest Circle
More
Others
Paranthesis Matching
More
Others
Buzz Number
More
Others
Decimal to Roman Numeral
More
Others
Fast Integer Input
More
Others
Happy Number
More
Probability
Probability
Poisson Dist
More
Probability
Bayes Theorem
More
Probability
Binomial Dist
More
Probability
Addition Rule
More
Range Queries
Range Queries
Segtree
More
Range Queries
Persistent Seg Tree Lazy Prop
More
Range Queries
Mo
More
Range Queries
Heavy Light Decomposition
More
Searches
Searches
Saddleback Search
More
Searches
Ternary Search
+3
More
Searches
Interpolation Search2
More
Searches
Jump Search
+5
More
Searches
Hash Search
More
Searches
Exponential Search
More
Searches
Floyd Cycle Detection Algo
More
Searches
Median Search
More
Searches
Text Search
More
Searches
Interpolation Search
+2
More
Searches
Sublist Search
More
Searches
Binary Search
+11
More
Searches
Linear Search
+10
More
Searches
Fibonacci Search
More
Sorts
Sorts
Topological Sort
More
Sorts
Insertion Sort
+13
More
Sorts
Pancake Sort
+2
More
Sorts
Quick Sort
+15
More
Sorts
Numeric String Sort
More
Sorts
Count Inversions
More
Sorts
Bucket Sort
+1
More
Sorts
Counting Sort
+4
More
Sorts
Pigeonhole Sort
More
Sorts
Shell Sort
+7
More
Sorts
Cycle Sort
+1
More
Sorts
Strand Sort
More
Sorts
Cocktail Selection Sort
More
Sorts
Heap Sort
+11
More
Sorts
Comb Sort
+6
More
Sorts
Bead Sort
More
Sorts
Wiggle Sort
More
Sorts
Quick Sort 3
More
Sorts
Odd Even Sort
More
Sorts
Random Pivot Quick Sort
More
Sorts
Slowsort
More
Sorts
Counting Sort String
More
Sorts
Bogo Sort
+2
More
Sorts
Tim Sort
More
Sorts
Bubble Sort
+15
More
Sorts
Swap Sort
More
Sorts
Selection Sort
+12
More
Sorts
Merge Insertion Sort
More
Sorts
Recursive Bubble Sort
More
Sorts
Radix Sort2
More
Sorts
Gnome Sort
+3
More
Sorts
Shell Sort2
More
Sorts
Library Sort
More
Sorts
Merge Sort
+16
More
Sorts
Radix Sort
+7
More
Sorts
Non Recursive Merge Sort
More
Sorts
Bitonic Sort
More
Sorts
Wave Sort
More
Strings
Strings
HammingDistance
More
Strings
Knuth Morris Pratt
More
Strings
Rabin Karp
More
Strings
Horspool
More
Strings
Brute Force String Searching
More
© The Algorithms 2021
What is an algorithm?
About us
Programming Languages
Contribute
Contact
GitHub
Gitter
Twitter
Source code
Analytics