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