The Algorithms
Search any algorithm
About
Donate
Java
GitHub repository
undefined
Minimizing Lateness
More
Audio Filters
Audio Filters
Iir Filter
More
Backtracking
Backtracking
Maze Recursion
More
Backtracking
N Queens
More
Backtracking
Permutation
More
Backtracking
Combination
More
Backtracking
Power Sum
More
Backtracking
All Paths From Source To Target
More
Backtracking
Knights Tour
More
Backtracking
Array Combination
More
Backtracking
Word Search
More
Backtracking
Hamiltonian Cycle
More
Backtracking
Sudoku Solver
+1
More
Ciphers
Ciphers
Caesar
More
Ciphers
Product Cipher
More
Ciphers
AES Encryption
More
Ciphers
Vigenere
More
Ciphers
Blowfish
More
Ciphers
RSA
More
Ciphers
Columnar Transposition Cipher
More
Ciphers
/
A 5
LFSR
More
Ciphers
/
A 5
A 5 Key Stream Generator
More
Ciphers
/
A 5
A 5 Cipher
More
Ciphers
/
A 5
Composite LFSR
More
Ciphers
/
A 5
Base LFSR
More
Ciphers
/
A 5
Utils
More
Ciphers
Polybius
More
Ciphers
Simple Sub Cipher
More
Ciphers
DES
More
Ciphers
AES
More
Ciphers
Hill Cipher
More
Ciphers
Affine Cipher
More
Ciphers
Simple Substitution Cipher
More
Compression
Compression
Huffman
More
Conversions
Conversions
Decimal to Binary
+4
More
Conversions
Binary to Hexadecimal
More
Conversions
Hexa Decimal To Binary
More
Conversions
Any Base To Any Base
More
Conversions
Octal To Binary
More
Conversions
Octal to Decimal
More
Conversions
Anyto Any
More
Conversions
Any Base To Decimal
More
Conversions
Binary to Decimal
+3
More
Conversions
Decimal to Octal
More
Conversions
Hex To Oct
More
Conversions
Integer To Roman
More
Conversions
Binary to Octal
More
Conversions
Turkish To Latin Conversion
More
Conversions
Hexadecimal to Decimal
More
Conversions
Rgb Hsv Conversion
More
Conversions
Decimal To Any Base
More
Conversions
Roman To Integer
More
Conversions
Octal To Hexadecimal
More
Conversions
Decimal to Hexadecimal
More
CPU Scheduling Algorithms
CPU Scheduling Algorithms
Fcfs Scheduling
More
Data Structures
Data Structures
Node
More
Data Structures
/
Stacks
Infix To Postfix
More
Data Structures
/
Stacks
Stack with Singly Linked List
+3
More
Data Structures
/
Stacks
Reverse Stack
More
Data Structures
/
Stacks
Maximum Minimum Window
More
Data Structures
/
Stacks
Decimal To Any Using Stack
More
Data Structures
/
Stacks
Node Stack
More
Data Structures
/
Stacks
Stack Array List
More
Data Structures
/
Stacks
Next Smaller Element
More
Data Structures
/
Stacks
Next Grater Element
More
Data Structures
/
Stacks
Largest Rectangle
More
Data Structures
/
Stacks
Duplicate Brackets
More
Data Structures
/
Stacks
Calculate Max Of Min
More
Data Structures
/
Stacks
Stack Array
More
Data Structures
/
Stacks
Postfix To Infix
More
Data Structures
/
Stacks
Balanced Brackets
More
Data Structures
/
Bags
Bag
More
Data Structures
Dynamic Array
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
/
Graphs
Tarjans Algorithm
More
Data Structures
/
Graphs
DIJSKSTRAS ALGORITHM
More
Data Structures
Graphs
More
Data Structures
/
Graphs
Bipartite Grapf DFS
More
Data Structures
/
Graphs
Connected Component
More
Data Structures
/
Graphs
Matrix Graphs
More
Data Structures
/
Graphs
Kahns Algorithm
More
Data Structures
/
Graphs
Cycles
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Tree
KD Tree
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
/
Tree
Vertical Order Traversal
More
Data Structures
/
Tree
Zigzag Traversal
More
Data Structures
/
Tree
Inorder Traversal
More
Data Structures
/
Tree
Tree Random Node
More
Data Structures
/
Tree
Print Top Viewof Tree
More
Data Structures
/
Tree
Check Binary Tree Is Valid BST
More
Data Structures
/
Tree
Pre Order Traversal
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
/
Tree
Create Binary Tree From Inorder Preorder
More
Data Structures
/
Tree
LCA
More
Data Structures
/
Tree
Binary Tree
More
Data Structures
/
Tree
Trie Imp
More
Data Structures
/
Tree
BST From Sorted Array
More
Data Structures
/
Tree
Ceil In Binary Search Tree
More
Data Structures
/
Tree
Check If Binary Tree Balanced
More
Data Structures
/
Binary Tree
Segment Tree
+3
More
Data Structures
/
Tree
BST Recursive Generic
More
Data Structures
/
Tree
Post Order Traversal
More
Data Structures
/
Tree
AVL Simple
More
Data Structures
/
Tree
Level Order Traversal
More
Data Structures
/
Tree
BST Iterative
More
Data Structures
/
Tree
Check Tree Is Symmetric
More
Data Structures
/
Tree
Nearest Right Key
More
Data Structures
/
Tree
BST Recursive
More
Data Structures
/
Tree
Red Black BST
More
Data Structures
/
Tree
Generic Tree
More
Data Structures
/
Tree
Same Trees Check
More
Data Structures
/
Heaps
Leftist Heap
More
Data Structures
/
Heaps
Empty Heap Exception
More
Data Structures
Heap
+1
More
Data Structures
/
Heaps
Fibonacci Heap
More
Data Structures
/
Heaps
Heap Element
More
Data Structures
/
Heap
Min Heap
More
Data Structures
/
Heap
Min Priority Queue
More
Data Structures
/
Heaps
Generic Heap
More
Data Structures
/
Heap
Max Heap
+1
More
Data Structures
Disjoint Sets
More
Data Structures
Node
More
Data Structures
/
Hash Map
/
Hashing
Majority Element
More
Data Structures
/
Hash Map
/
Hashing
Main
More
Data Structures
/
Hash Map
/
Hashing
Generic Hash Map Using Array List
More
Data Structures
/
Hash Map
/
Hashing
Generic Hash Map Using Array
More
Data Structures
/
Hash Map
/
Hashing
Hash Map Cuckoo Hashing
More
Data Structures
/
Hash Map
/
Hashing
Main Cuckoo Hashing
More
Data Structures
/
Hashing
Hash Map
More
Data Structures
/
Hash Map
/
Hashing
Map
More
Data Structures
/
Hash Map
/
Hashing
Linear Probing Hash Map
More
Data Structures
/
Buffers
Circular Buffer
More
Data Structures
/
Cache
MRU Cache
More
Data Structures
/
Queues
Circular Queue
More
Data Structures
/
Queues
Priority Queues
More
Data Structures
/
Queues
Deques
More
Data Structures
/
Queues
Linked Queue
More
Data Structures
/
Queues
Generic Array List Queue
More
Data Structures
Queues
More
Data Structures
/
List
Search Singly Linked List Recursion
More
Data Structures
/
List
Merge Sorted Singly Linked List
More
Data Structures
/
List
Count Singly Linked List Recursion
More
Data Structures
/
Linked List
Doubly Linked List
+3
More
Data Structures
/
List
Create And Detect Loop
More
Data Structures
/
List
Merge Sorted Array List
More
Data Structures
/
List
Cursor Linked List
More
Data Structures
/
List
Merge K Sorted Linkedlist
More
Data Structures
/
List
Random Node
More
Data Structures
/
Linked List
Skip List
More
Data Structures
/
Linked List
Singly Linked List
+3
More
Data Structures
/
List
Circle Linked List
More
Data Structures
Queue Using Two Stacks
More
Devutils
Devutils
/
Entities
Process Details
More
Devutils
/
Searches
Search Algorithm
More
Devutils
/
Searches
Matrix Search Algorithm
More
Devutils
/
Nodes
Simple Tree Node
More
Devutils
/
Nodes
Large Tree Node
More
Devutils
/
Nodes
Simple Node
More
Devutils
/
Nodes
Tree Node
More
Digital Image Processing
Digital Image Processing
Rotation
More
Divide and Conquer
Divide and Conquer
Strassen Matrix Multiplication
More
Divide and Conquer
Skyline Algorithm
More
Divide and Conquer
Closest Pair
More
Divide and Conquer
Mergesort
+18
More
Dynamic Programming
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Matrix Chain Recursive Top Down Memoisation
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Shortest Common Supersequence Length
More
Dynamic Programming
Dyanamic Programming Knapsack
More
Dynamic Programming
Count Friends Pairing
More
Dynamic Programming
Optimal Job Scheduling
More
Dynamic Programming
Palindromic Partitioning
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Dice Throw
More
Dynamic Programming
Longest Valid Parentheses
More
Dynamic Programming
Climbing Stairs
More
Dynamic Programming
Longest Palindromic Subsequence
More
Dynamic Programming
New Man Shanks Prime
More
Dynamic Programming
Brute Force Knapsack
More
Dynamic Programming
Unique Paths
More
Dynamic Programming
Wine Problem
More
Dynamic Programming
Boundary Fill
More
Dynamic Programming
Regex Matching
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Edit Distance
+1
More
Dynamic Programming
Partition Problem
More
Dynamic Programming
Matrix Chain Multiplication
More
Dynamic Programming
Subset Sum
More
Dynamic Programming
Knapsack Memoization
More
Dynamic Programming
Minimum Sum Partition
More
Dynamic Programming
Kadane Algorithm
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Subset Count
More
Dynamic Programming
Longest Alternating Subsequence
More
Dynamic Programming
Sum of Subset
More
Dynamic Programming
Board Path
More
Dynamic Programming
Coin Change
+4
More
Dynamic Programming
Longest Increasing Subsequence
More
Fractals
Fractals
Mandelbrot
More
Fractals
Koch Snowflake
More
Graphs
Graphs
Depth First Search
+4
More
Graphs
Breadth First Search
+3
More
Graphs
Prim MST
More
Graphs
Kosaraju
More
Graphs
A Star
More
Graphs
Bellman Ford
+3
More
Graphs
Kruskal
More
Graphs
Minimum Path Sum
More
Graphs
Dijkstra
+3
More
Graphs
Page Rank
More
Hashing
Hashing
Luhn
More
Io
Io
Buffered Reader
More
Math
Math
Binary Pow
More
Math
Absolute Value
More
Math
Palindrome Number
More
Math
Parse Integer
More
Math
Fast Inverse Sqrt
More
Math
Square Free Integer
More
Math
GCD Recursion
More
Math
Leonardo Number
More
Math
Sum Without Arithmetic Operators
More
Math
Keith Number
More
Math
Josephus Problem
More
Math
Standard Score
More
Math
Aliquot Sum
+4
More
Math
Magic Square
More
Math
Prime Factorization
More
Math
Area
More
Math
Average
More
Math
Long Division
More
Math
Lucas Series
More
Math
Absolute Min
More
Math
Collatz Conjecture
More
Math
Generic Root
More
Math
Pythagorean Triple
More
Math
Volume
More
Math
Combinations
More
Math
Factorial Recursion
More
Math
Sum of Arithmetic Series
More
Math
Find Max Recursion
More
Math
Gaussian
More
Math
Least Common Multiple
More
Math
Standard Deviation
More
Math
Sum of Digits
+1
More
Math
Roman Numeral Util
More
Math
Harshad Number
More
Math
Pi Nilakantha
More
Math
Absolute Max
More
Math
Determinant Of Matrix
More
Math
Fibonacci Java Streams
More
Math
Pow
More
Math
Kaprekar Numbers
More
Math
Perimeter
More
Math
Perfect Square
+1
More
Math
Floor
More
Math
Reverse Number
More
Math
Armstrong Number
+7
More
Math
Perfect Cube
More
Math
Krishnamurthy Number
More
Math
Pronic Number
More
Math
Automorphic Number
More
Math
Frizzy Number
More
Math
Euler Method
More
Math
Amicable Number
More
Math
Find Min
+1
More
Math
Ugly Numbers
More
Math
Vector Cross Product
More
Math
Binomial Coefficient
More
Math
Factorial
+11
More
Math
Matrix Util
More
Math
Perfect Number
+4
More
Math
Square Root With Babylonian Method
More
Math
Ceil
More
Math
Digital Root
More
Math
Juggler Sequence
More
Math
Find Kth Number
More
Math
Pow Recursion
More
Math
Mode
More
Math
Median
More
Math
Mobius Function
More
Math
Circular Convolution FFT
More
Math
Pollard Rho
More
Math
FFT Bluestein
More
Math
Square Root With Newton Raphson Method
More
Math
Trinomial Triangle
More
Math
Convolution
More
Math
Find Max
More
Math
ADT Fraction
More
Math
Convolution FFT
More
Math
Power Of Two Or Not
More
Math
Linear Diophantine Equations Solver
More
Math
Herons Formula
More
Math
Dudeney Number
More
Math
Distance Formula
More
Math
Prime
+7
More
Math
Number of Digits
More
Math
Find Min Recursion
More
Math
Vampire Number
More
Math
Fibonacci Number Check
More
Math
Liouville Lambda Function
More
Math
Simpson Integration
More
Math
FFT
More
Math
Max Value
More
Math
GCD
More
Math
Min Value
More
Math
Non Repeating Element
More
Math
Twin Prime
More
Math
Fibonacci Numbers
+10
More
Math
Fibonacci Numbers
+10
More
Math
Catalan Number
More
Math
Binary Exponentiation
More
Math
Sieve of Eratosthenes
+4
More
Matrix
Matrix
Pascal Triangle
More
Matrix
Inverse of Matrix
More
Networking Flow
Networking Flow
Ford Fulkerson
More
Numerical Analysis
Numerical Analysis
Intersection
More
Operations on Datastructures
Operations on Datastructures
Array Left Rotation
More
Others
Others
Word Boggle
More
Others
Palindrome Singly Linked List
More
Others
Matrix Transpose
More
Others
Palindrome Prime
More
Others
Range In Sorted Array
More
Others
Sort 012 D
More
Others
Color Contrast Ratio
More
Others
Sparcity
More
Others
Median Of Running Array
More
Others
Three Sum Problem
More
Others
Graham Scan
More
Others
Lru Cache
More
Others
Lfu Cache
More
Others
Top K Words
More
Others
Perlin Noise
More
Others
Password Gen
More
Others
CRC 16
More
Others
Count Words
More
Others
CRC 32
More
Others
Linear Congruential Generator
More
Others
KMP
More
Others
Reverse Stack Using Recursion
More
Others
Guass Legendre
More
Others
Print A Matrix In Spiral Order
More
Others
Line Sweep
More
Others
Remove Duplicate From String
More
Others
Floyd Triangle
More
Others
Happy Numbers Seq
More
Others
Stack Postfix Notation
More
Others
Root Precision
More
Others
Damm
More
Others
Lowest Base Palindrome
More
Others
Count Char
More
Others
Rotate Matrice By 90 Degree
More
Others
Skyline Problem
More
Others
Verhoeff
More
Others
Krishnamurthy
More
Others
Insert Delete In Array
More
Others
Mini Max Algorithm
More
Others
Two Pointers
More
Others
CRC Algorithm
More
Others
Conway
More
Others
Tower of Hanoi
+1
More
Others
Brian Kernighan Algorithm
More
Others
Implementing Auto Completing Features Using Trie
More
Others
Memory Management Algorithms
More
Others
String Match Finite Automata
More
Others
Fibbonaci Series
More
Others
Eulers Function
More
Others
BFPRT
More
Others
Return Subsequence
More
Others
Bankers Algorithm
More
Others
Count Set Bits
More
Recursive
Recursive
Flood Fill
More
Scheduling
Scheduling
SJF Scheduling
More
Scheduling
RR Scheduling
More
Searches
Searches
Linear Search
+13
More
Searches
Order Agnostic Binary Search
More
Searches
Lower Bound
More
Searches
KMP Search
More
Searches
Sort Order Agnostic Binary Search
More
Searches
Ternary Search
+5
More
Searches
Saddleback Search
More
Searches
Binary Search
+14
More
Searches
Upper Bound
More
Searches
Iterative Binary Search
More
Searches
Union Find
More
Searches
Perfect Binary Search
More
Searches
Rabin Karp Algorithm
More
Searches
Linear Search Thread
More
Searches
Quick Select
More
Searches
Jump Search
+8
More
Searches
Binary Search 2d Array
More
Searches
Square Root Binary Search
More
Searches
How Many Times Rotated
More
Searches
Row Column Wise Sorted 2d Array Binary Search
More
Searches
Fibonacci Search
+4
More
Searches
Search In A Row And Col Wise Sorted Matrix
More
Searches
Exponental Search
More
Searches
Iterative Ternary Search
More
Searches
Monte Carlo Tree Search
More
Searches
Interpolation Search
+5
More
Sorts
Sorts
Cocktail Shaker Sort
More
Sorts
Shell Sort
+8
More
Sorts
Bubble Sort Recursion
More
Sorts
Sort Utils
More
Sorts
Swap Sort
More
Sorts
Sort Utils Random Generator
More
Sorts
Introspective Sort
More
Sorts
Counting Sort
+6
More
Sorts
Simple Sort
More
Sorts
Dual Pivot Quick Sort
More
Sorts
Circle Sort
More
Sorts
Link List Sort
More
Sorts
Odd Even Sort
More
Sorts
Bead Sort
+2
More
Sorts
Gnome Sort
+7
More
Sorts
Wiggle Sort
More
Sorts
Stooge Sort
More
Sorts
Topological Sort
+1
More
Sorts
Selection Sort
+13
More
Sorts
Merge Sort Recursive
More
Sorts
Pancake Sort
+5
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Strand Sort
More
Sorts
Dnf Sort
More
Sorts
Sort Algorithm
More
Sorts
Heap Sort
+12
More
Sorts
Radix Sort
+8
More
Sorts
Comb Sort
+7
More
Sorts
Insertion Sort
+17
More
Sorts
Tree Sort
More
Sorts
Merge Sort No Extra Space
More
Sorts
Bubble Sort
+18
More
Sorts
Binary Insertion Sort
+1
More
Sorts
Tim Sort
+1
More
Sorts
Bucket Sort
+4
More
Sorts
Cycle Sort
+4
More
Sorts
Bogo Sort
+5
More
Sorts
Bitonic Sort
More
Sorts
Quick Sort
+18
More
Sorts
Dutch National Flag Sort
More
Sorts
Slowsort
More
Strings
Strings
Pangram
More
Strings
Longest Palindromic Substring
More
Strings
Characters Same
More
Strings
Valid Parentheses
More
Strings
Reverse String
More
Strings
Anagram
More
Strings
Zig Zag Pattern
More
Strings
Longest Non Repeative Substring
More
Strings
Upper
More
Strings
My Atoi
More
Strings
Isomorphic
More
Strings
Lower
More
Strings
Palindrome
+2
More
Strings
Check Anagram
+2
More
Strings
Word Ladder
More
Strings
Reverse String Recursive
More
Strings
Hamming Distance
+4
More
Strings
Alphabetical
More
Strings
Check Vowels
More
Strings
Letter Combinations Of Phone Number
More
Strings
Horspool Search
More
Strings
Permute String
More
Strings
String Compression
More
Strings
Longest Palindromic Substring
More
Strings
Levenshtein Distance
+2
More
Strings
Rabin Karp
+1
More
Strings
Boyer Moore
More
Strings
Hamming Distance
+4
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
Twitter
Source code
Contact