The Algorithms
Search any algorithm
About
Donate
C++
GitHub repository
Documentation
Backtracking
Backtracking
Wildcard Matching
More
Backtracking
Minimax
More
Backtracking
Subarray Sum
More
Backtracking
Graph Coloring
More
Backtracking
Sudoku Solver
+1
More
Backtracking
Magic Sequence
More
Backtracking
Knight Tour
More
Backtracking
Nqueen Print All Solutions
More
Backtracking
N Queens All Solution Optimised
More
Backtracking
N Queens
More
Backtracking
Rat Maze
More
Bit Manipulation
Bit Manipulation
Count of Set Bits
More
Bit Manipulation
Power of 2
More
Bit Manipulation
Count Bits Flip
More
Bit Manipulation
Find Non Repeating Number
More
Bit Manipulation
Travelling Salesman Using Bit Manipulation
More
Bit Manipulation
Set Kth Bit
More
Bit Manipulation
Count of Trailing Ciphers in Factorial N
More
Blockchain
Blockchain
Modular Division
More
Ciphers
Ciphers
Base 64 Encoding
More
Ciphers
Uint 256 T
More
Ciphers
Vigenere Cipher
More
Ciphers
Elliptic Curve Key Exchange
More
Ciphers
Atbash Cipher
More
Ciphers
Caesar Cipher
More
Ciphers
A 1z 26 Cipher
More
Ciphers
Uint 128 T
More
Ciphers
XOR Cipher
+2
More
Ciphers
Morse Code
More
Ciphers
Hill Cipher
More
Compression
Compression
Huffman
More
Conversions
Conversions
Decimal to Hexadecimal
More
Conversions
Decimal to Binary
+3
More
CPU Scheduling Algorithms
CPU Scheduling Algorithms
Fcfs Scheduling
More
Data Structures
Data Structures
Dsu Path Compression
More
Data Structures
Stack
+2
More
Data Structures
Circular Queue Using Linked List
More
Data Structures
Trie Tree
More
Data Structures
Trie Modern
More
Data Structures
Rb Tree
More
Data Structures
/
Linked List
Skip List
More
Data Structures
Trie Using Hashmap
More
Data Structures
Bloom Filter
More
Data Structures
Queue
+1
More
Data Structures
Sparse Table
More
Data Structures
/
Binary Tree
AVL Tree
+1
More
Data Structures
Stack Using Array
More
Data Structures
Node
More
Data Structures
/
Binary Tree
Binary Search Tree
+1
More
Data Structures
List Array
More
Data Structures
Tree
More
Data Structures
Queue Using Array 2
More
Data Structures
Morrisinorder
More
Data Structures
Linkedlist Implentation Usingarray
More
Data Structures
Reverse a Linked List
More
Data Structures
Binary Search Tree 2
More
Data Structures
Stack Using Queue
More
Data Structures
Dsu Union Rank
More
Data Structures
Disjoint Set
More
Data Structures
Queue Using Linkedlist
More
Data Structures
Linked List
More
Data Structures
Queue Using Array
More
Data Structures
/
Linked List
Doubly Linked List
+2
More
Data Structures
Tree 234
More
Data Structures
Queue Using Two Stacks
More
Data Structures
Queue Using Linkedlist
More
Data Structures
/
CLL
Main Cll
More
Data Structures
Cll
More
Data Structures
Cll
More
Data Structures
/
Stacks
Stack with Singly Linked List
+2
More
Data Structures
Binaryheap
More
Data Structures
/
Stacks
Postfix Evaluation
More
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
/
Linked List
Circular Linked List
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
Sparse Table
More
Data Structures
/
Hashing
/
Number Theory
Prime
+7
More
Data Structures
/
Hashing
/
Number Theory
Prime
+7
More
Divide and Conquer
Divide and Conquer
Karatsuba Algorithm for Fast Multiplication
More
Divide and Conquer
Strassen Matrix Multiplication
More
Dynamic Programming
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Subset Sum
More
Dynamic Programming
Longest Palindromic Subsequence
More
Dynamic Programming
Egg Dropping Puzzle
More
Dynamic Programming
Cut Rod
More
Dynamic Programming
Catalan Numbers
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Edit Distance
+2
More
Dynamic Programming
Word Break
More
Dynamic Programming
Minimum Edit Distance
More
Dynamic Programming
Shortest Common Supersequence
More
Dynamic Programming
Longest Common String
More
Dynamic Programming
Kadane 2
More
Dynamic Programming
Tree Height
More
Dynamic Programming
Palindrome Partitioning
More
Dynamic Programming
Floyd Warshall
+2
More
Dynamic Programming
Matrix Chain Multiplication
More
Dynamic Programming
Partition Problem
More
Dynamic Programming
/
Sliding Window
House Robber
More
Dynamic Programming
Searching of Element in Dynamic Array
More
Dynamic Programming
Abbreviation
More
Dynamic Programming
Coin Change Topdown
More
Dynamic Programming
Fibonacci Bottom Up
More
Dynamic Programming
Maximum Circular Subarray
More
Dynamic Programming
Coin Change
+4
More
Dynamic Programming
Longest Increasing Subsequence (Nlogn)
More
Dynamic Programming
0 1 Knapsack
More
Dynamic Programming
Kadane
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Subset Sum
More
Dynamic Programming
Fibonacci Numbers
+10
More
Dynamic Programming
Factorial
+10
More
Geometry
Geometry
Graham Scan Functions
More
Geometry
Jarvis Algorithm
More
Geometry
Line Segment Intersection
More
Geometry
Graham Scan Algorithm
More
Graphics
Graphics
Spirograph
More
Graphs
Graphs
Bellman Ford
+2
More
Graphs
Dijkstra
+2
More
Graphs
Bridge Finding with Tarjan Algorithm
More
Graphs
Is Graph Bipartite 2
More
Graphs
Hamiltons Cycle
More
Graphs
Prim
More
Graphs
Connected Components
More
Graphs
Kosaraju
More
Graphs
Hopcroft Karp
More
Graphs
Bi Directional Dijkstra
More
Graphs
Breadth First Search
+3
More
Graphs
Topological Sort by Kahns Algo
More
Graphs
Depth First Search with Stack
More
Graphs
Depth First Search
+4
More
Graphs
Kruskal
More
Graphs
Max Flow with Ford Fulkerson and Edmond Karp Algo
More
Graphs
Travelling Salesman Problem
More
Graphs
Is Graph Bipartite
More
Graphs
Connected Components with Dsu
More
Graphs
Cycle Check Directed Graph
More
Graphs
Dijkstra
+2
More
Greedy Algorithms
Greedy Algorithms
Prims Minimum Spanning Tree
More
Greedy Algorithms
Jumpgame
More
Greedy Algorithms
Kruskals Minimum Spanning Tree
More
Greedy Algorithms
Boruvkas Minimum Spanning Tree
More
Hashing
Hashing
Md 5
More
Hashing
Double Hash Hash Table
More
Hashing
Linear Probing Hash Table
More
Hashing
Quadratic Probing Hash Table
More
Hashing
Sha 1
More
Hashing
Chaining
More
Machine Learning
Machine Learning
Ordinary Least Squares Regressor
More
Machine Learning
A Star Search
More
Machine Learning
K Nearest Neighbors
More
Machine Learning
Adaline Learning
More
Machine Learning
Neural Network
More
Machine Learning
Vector Ops
More
Machine Learning
Kohonen Som Trace
More
Machine Learning
Kohonen Som Topology
More
Math
Math
Armstrong Number
+7
More
Math
Matrix Exponentiation
More
Math
Qr Decomposition
More
Math
Runge Kutta
More
Math
Bisection Method
More
Math
Magic Number
More
Math
N Bonacci
More
Math
Power of Two
More
Math
N Choose R
More
Math
Inv Sqrt
More
Math
Perimeter
More
Math
Least Common Multiple
More
Math
Integral Approximation 2
More
Math
Gcd Iterative Euclidean
More
Math
Fibonacci Large
More
Math
Miller Rabin
More
Math
Gcd of N Numbers
More
Math
Large Number
More
Math
Linear Recurrence Matrix
More
Math
Binary Exponent
More
Math
Sqrt Double
More
Math
Prime Factorization
More
Math
Realtime Stats
More
Math
Largest Power
More
Math
Check Factorial
More
Math
Area
More
Math
Volume
More
Math
Extended Euclid Algorithm
More
Math
Power for Huge Numbers
More
Math
Sum of Binomial Coefficient
More
Math
Modular Inverse Fermat Little Theorem
More
Math
Gcd Recursive Euclidean
More
Math
Approximate Pi
More
Math
Aliquot Sum
+3
More
Math
Sum of Digits
More
Math
Double Factorial
More
Math
Armstrong Number
+7
More
Math
Fibonacci Matrix Exponentiation
More
Math
Finding Number of Digits in a Number
More
Math
Modular Inverse Simple
More
Math
Modular Exponentiation
More
Math
Number of Positive Divisors
More
Math
String Fibonacci
More
Math
Complex Numbers
More
Math
Sieve of Eratosthenes
+4
More
Math
Primes up to Billion
More
Math
Fibonacci Sum
More
Math
Ncr Modulo P
More
Math
Vector Cross Product
More
Math
Binomial Calculate
More
Math
Integral Approximation
More
Math
LCM
+2
More
Math
Check Amicable Pair
More
Math
Large Factorial
More
Math
Euler's Totient
+1
More
Math
Fast Power
More
Math
Fibonacci Fast
More
Matrix
Matrix
Spiral Print
More
Matrix
Pascal Triangle
More
Numerical Analysis
Numerical Analysis
Gaussian Elimination
More
Numerical Analysis
Lu Decomposition
More
Numerical Methods
Numerical Methods
Gram Schmidt
More
Numerical Methods
Fast Fourier Transform
More
Numerical Methods
Durand Kerner Roots
More
Numerical Methods
Brent Method Extrema
More
Numerical Methods
Composite Simpson Rule
More
Numerical Methods
Lu Decompose
More
Numerical Methods
Successive Approximation
More
Numerical Methods
False Position
More
Numerical Methods
Inverse Fast Fourier Transform
More
Numerical Methods
Qr Eigen Values
More
Numerical Methods
Midpoint Integral Method
More
Numerical Methods
Ode Forward Euler
More
Numerical Methods
Qr Decompose
More
Numerical Methods
Ode Midpoint Euler
More
Numerical Methods
Golden Search Extrema
More
Numerical Methods
Newton Raphson Method
More
Numerical Methods
Babylonian Method
More
Numerical Methods
Ode Semi Implicit Euler
More
Operations on Datastructures
Operations on Datastructures
Reverse Binary Tree
More
Operations on Datastructures
Union of Two Arrays
More
Operations on Datastructures
Array Right Rotation
More
Operations on Datastructures
Reverse a Linked List Using Recusion
More
Operations on Datastructures
Trie Multiple Search
More
Operations on Datastructures
Intersection of Two Arrays
More
Operations on Datastructures
Array Left Rotation
More
Operations on Datastructures
Inorder Successor of Bst
More
Operations on Datastructures
Circular Queue Using Array
More
Operations on Datastructures
Selectionsortlinkedlist
More
Operations on Datastructures
Get Size of Linked List
More
Others
Others
Paranthesis Matching
More
Others
Kadanes 3
More
Others
Happy Number
More
Others
Easter
More
Others
Tower of Hanoi
+1
More
Others
Palindrome of Number
More
Others
Recursive Tree Traversal
More
Others
Smallest Circle
More
Others
Vector Important Functions
More
Others
Stairs Pattern
More
Others
Lru Cache
More
Others
Decimal to Roman Numeral
More
Others
Sparse Matrix
More
Others
Buzz Number
More
Others
Fast Integer Input
More
Others
Iterative Tree Traversals
More
Physics
Physics
Ground to Ground Projectile Motion
More
Probability
Probability
Windowed Median
More
Probability
Poisson Dist
More
Probability
Geometric Dist
More
Probability
Addition Rule
More
Probability
Bayes Theorem
More
Probability
Binomial Dist
More
Range Queries
Range Queries
Mo
More
Range Queries
Segtree
More
Range Queries
Heavy Light Decomposition
More
Range Queries
Persistent Seg Tree Lazy Prop
More
Range Queries
Prefix Sum Array
More
Searches
Searches
Fibonacci Search
+4
More
Searches
Sublist Search
More
Searches
Interpolation Search
+4
More
Searches
Exponential Search
More
Searches
Ternary Search
+5
More
Searches
Linear Search
+12
More
Searches
Binary Search
+13
More
Searches
Text Search
More
Searches
Floyd Cycle Detection Algo
More
Searches
Interpolation Search 2
More
Searches
Hash Search
More
Searches
Median Search
More
Searches
Median Search 2
More
Searches
Saddleback Search
More
Searches
Jump Search
+7
More
Sorts
Sorts
Topological Sort
More
Sorts
Wiggle Sort
More
Sorts
Swap Sort
More
Sorts
Odd Even Sort
More
Sorts
Slowsort
More
Sorts
Random Pivot Quick Sort
More
Sorts
Count Inversions
More
Sorts
Cycle Sort
+2
More
Sorts
Bubble Sort
+17
More
Sorts
Merge Sort
+17
More
Sorts
Shell Sort 2
More
Sorts
Pancake Sort
+5
More
Sorts
Dnf Sort
More
Sorts
Strand Sort
More
Sorts
Radix Sort 2
More
Sorts
Selection Sort Recursive
More
Sorts
Binary Insertion Sort
More
Sorts
Library Sort
More
Sorts
Shell Sort
+7
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Selection Sort Iterative
More
Sorts
Counting Sort
+5
More
Sorts
Bogo Sort
+5
More
Sorts
Merge Insertion Sort
More
Sorts
Wave Sort
More
Sorts
Radix Sort
+7
More
Sorts
Tim Sort
+1
More
Sorts
Bitonic Sort
More
Sorts
Heap Sort
+12
More
Sorts
Insertion Sort
+16
More
Sorts
Counting Sort String
More
Sorts
Bucket Sort
+4
More
Sorts
Comb Sort
+7
More
Sorts
Numeric String Sort
More
Sorts
Bead Sort
+1
More
Sorts
Gnome Sort
+6
More
Sorts
Cocktail Selection Sort
More
Sorts
Quick Sort 3
More
Sorts
Non Recursive Merge Sort
More
Sorts
Quick Sort
+17
More
Sorts
Recursive Bubble Sort
More
Strings
Strings
Hamming Distance
+4
More
Strings
Manacher Algorithm
More
Strings
Knuth Morris Pratt
More
Strings
Z Function
More
Strings
Brute Force String Searching
More
Strings
Rabin Karp
+1
More
Strings
Horspool
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
Twitter
Source code
Contact