The Algorithms
Search any algorithm
About
Donate
Rust
GitHub repository
undefined
Knapsack
More
Backtracking
Backtracking
N Queens
More
Ciphers
Ciphers
Caesar
More
Ciphers
Xor
More
Ciphers
Transposition
More
Ciphers
Polybius
More
Ciphers
Another Rot 13
More
Ciphers
Morse Code
More
Ciphers
Tea
More
Ciphers
Rot 13
More
Ciphers
Vigenere
More
Data Structures
Data Structures
Graph
More
Data Structures
/
Binary Tree
Segment Tree
More
Data Structures
Heap
More
Data Structures
/
Binary Tree
AVL Tree
+1
More
Data Structures
Rb Tree
More
Data Structures
/
Binary Tree
Binary Search Tree
+1
More
Data Structures
Trie
More
Data Structures
B Tree
More
Data Structures
Queue
More
Data Structures
/
Stacks
Stack with Singly Linked List
+2
More
Data Structures
Linked List
More
Data Structures
/
Hashing
/
Number Theory
Prime Numbers
More
Divide and Conquer
Divide and Conquer
Convex Hull
More
Dynamic Programming
Dynamic Programming
Is Subsequence
More
Dynamic Programming
Maximum Subarray
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Maximal Square
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Fibonacci Numbers
+8
More
Dynamic Programming
Coin Change
+2
More
Dynamic Programming
Edit Distance
+3
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Longest Common Subsequence
More
Dynamic Programming
Longest Continuous Increasing Subsequence
More
General
General
Kmeans
More
General
Hanoi
More
Geometry
Geometry
Closest Points
More
Graphs
Graphs
Depth First Search
+3
More
Graphs
Prufer Code
More
Graphs
Dijkstra
+1
More
Graphs
Breadth First Search
+2
More
Graphs
Minimum Spanning Tree
More
Graphs
Prim
More
Graphs
Bellman Ford
+1
More
Graphs
Depth First Search Tic Tac Toe
More
Hashing
Hashing
Sha 256
More
Math
Math
Trial Division
More
Math
Greatest Common Divisor
More
Math
Pollard Rho
More
Math
Prime Check
+2
More
Math
Square Root
More
Math
Perfect Numbers
More
Math
Pascal Triangle
More
Math
Nthprime
More
Math
Linear Sieve
More
Math
Miller Rabin
More
Math
Fast Power
More
Math
Extended Euclidean Algorithm
More
Math
Two Sum
More
Numerical Methods
Numerical Methods
Fast Fourier Transform
More
Searches
Searches
Kth Smallest
More
Searches
Binary Search Recursive
More
Searches
Linear Search
+11
More
Searches
Exponential Search
More
Searches
Binary Search
+12
More
Searches
Jump Search
+6
More
Searches
Fibonacci Search
+4
More
Sorts
Sorts
Shell Sort
+7
More
Sorts
Stooge Sort
More
Sorts
Bubble Sort
+16
More
Sorts
Radix Sort
+8
More
Sorts
Counting Sort
+5
More
Sorts
Heap Sort
+13
More
Sorts
Quick Sort
+17
More
Sorts
Odd Even Sort
More
Sorts
Gnome Sort
+4
More
Sorts
Comb Sort
+8
More
Sorts
Cocktail Shaker Sort
More
Sorts
Pancake Sort
+4
More
Sorts
Bucket Sort
+3
More
Sorts
Insertion Sort
+15
More
Sorts
Merge Sort
+17
More
Sorts
Tim Sort
+1
More
Sorts
Selection Sort
+12
More
Strings
Strings
Rabin Karp
+1
More
Strings
Z Algorithm
More
Strings
Reverse
More
Strings
Burrows Wheeler Transform
More
Strings
Aho Corasick
More
Strings
Manacher
More
Strings
Knuth Morris Pratt
More
© The Algorithms 2021
What is an algorithm?
About us
Programming Languages
Contribute
Donate
Contact
GitHub
Gitter
Twitter
Source code
Analytics