The Algorithms
Search any algorithm
About
Donate
C#
GitHub repository
undefined
Fast Search
More
Ciphers
Ciphers
Caesar
More
Ciphers
Vigenere
More
Ciphers
Blowfish
More
Conversions
Conversions
Rgb Hsv Conversion
More
Crypto
Crypto
/
Paddings
ISO 10125-2 Padding
More
Crypto
/
Paddings
ISO 7816-4 Padding
More
Crypto
/
Paddings
X9.32 Padding
More
Crypto
/
Paddings
TBC Padding
More
Crypto
/
Paddings
PKCS7 Padding
More
Crypto
/
Digests
Ascon Hash Digest
More
Crypto
/
Digests
MD2 Digest
More
Data Compression
Data Compression
Huffman Compressor
More
Data Compression
Shannon-Fano Compressor
More
Data Structures
Data Structures
/
Stacks
Next Greater Element
More
Data Structures
/
Stacks
Reverse Stack
More
Data Structures
Bit Array
More
Data Structures
Timeline
More
Data Structures
/
Binary Tree
Segment Tree
+4
More
Data Structures
/
Segment Trees
Segment Tree Multiplication
More
Data Structures
/
Segment Trees
Segment Tree Update
More
Data Structures
Fenwick tree (or Binary Indexed Tree)
More
Data Structures
/
Stacks
Array-based Stack
More
Data Structures
/
Stacks
List-based Stack
More
Data Structures
/
Stacks
Queue-based Stack
More
Data Structures
/
Heap
Min-Max Heap
More
Data Structures
/
Heap
Binary Heap
More
Data Structures
/
Heaps
Fibonacci Heap
More
Data Structures
/
Heap
Pairing Heap
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
/
Probabilistic
Count Min Sketch
More
Data Structures
/
Probabilistic
HyperLogLog
More
Data Structures
/
Queues
Array-based Queue
More
Data Structures
/
Queues
List-based Queue
More
Data Structures
/
Queues
Stack-based Queue
More
Data Structures
/
Linked List
Singly Linked List
+3
More
Data Structures
/
Linked List
Doubly Linked List
+5
More
Data Structures
/
Linked List
Skip List
More
Data Structures
/
Linked List
Circular Linked List
More
Data Structures
/
Graphs
Directed Weighted Graph Via Adjacency Matrix
More
Data Structures
SortedList
More
Data Structures
Inverted index
More
Data Structures
Unrolled linked list
More
Data Structures
Tries
More
Data Structures
/
Hashing
Hash Table
More
Data Structures
/
Cache
Least Frequently Used (LFU) Cache
More
Data Structures
/
Cache
Least Recently Used (LRU) Cache
More
Discrete Mathematics
Discrete Mathematics
Euclidean Gcd
More
Divide and Conquer
Divide and Conquer
Mergesort
+19
More
Divide and Conquer
Mergesort
+19
More
Dynamic Programming
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Factorial
+13
More
Dynamic Programming
Coin Change
+6
More
Encoders
Encoders
Hill
More
Encoders
NYSIIS
More
Encoders
Soundex
More
Encoders
Feistel
More
Fractals
Fractals
Mandelbrot
More
Fractals
Koch Snowflake
More
Graphs
Graphs
/
Minimum Spanning Tree
Prim's Algorithm (Adjacency Matrix)
More
Graphs
/
Minimum Spanning Tree
Kruskal's Algorithm
More
Graphs
Breadth First Search
+3
More
Graphs
Depth First Search
+4
More
Graphs
Dijkstra Shortest Path
More
Graphs
Kosaraju
More
Graphs
/
Coloring
Backtracking
More
Greedy Algorithms
Greedy Algorithms
Gale Shapley
More
Hashing
Hashing
Luhn
More
Knapsack
Knapsack
Naive solver
More
Knapsack
Dynamic Programming solver
More
Knapsack
Branch and bound solver
More
Knapsack
IHeuristicKnapsackSolver
More
Linear Algebra
Linear Algebra
/
Distances
Chebyshev
More
Linear Algebra
/
Distances
Euclidean
More
Linear Algebra
/
Distances
Manhattan
More
Linear Algebra
/
Distances
Minkowski
More
Linear Algebra
Power Iteration
More
Linear Algebra
Lu Decomposition
More
Math
Math
Chinese Remainder Theorem
More
Math
Extended Euclidean Algorithm
More
Math
Addition without Arithmetic
More
Math
Aliquot Sum
+5
More
Math
Ceil
+1
More
Math
Floor
More
Math
Modular Exponentiation
More
Math
Maclaurin Series
More
Math
Binomial Coefficient
+1
More
Math
Perfect Number
+7
More
Math
Perfect Square
+3
More
Math
Euler Method
More
Math
Miller Rabin Primality Check
More
Math
/
Special Numbers
Automorphic Number
More
Math
Josephus Problem
More
Math
Euler's Totient
+2
More
Math
Sieve of Eratosthenes
+4
More
Modular Arithmetic
Modular Arithmetic
Modular Multiplicative Inverse
More
Numeric
Numeric
Absolute
More
Numeric
Amicable Numbers Checker
More
Numeric
/
Decomposition
Thin Singular Vector Decomposition
More
Numeric
/
Greatest Common Divisor
Binary GCD
More
Numeric
/
Factorization
Trial division Factorization
More
Numeric
Gauss-Jordan Elimination
More
Numeric
Keith Number Checker
More
Numeric
Pseudo-Inverse
More
Numeric
Narcissistic Number Checker
More
Numeric
Perfect Cube Checker
More
Numeric
Classic Runge-Kutta Method
More
Numeric
KrishnamurthyNumberChecker
More
Numeric
Newton's Square Root Calculation
More
Numeric
SoftMax Function
More
Others
Others
Fermat Prime Checker
More
Others
Int2Binary
More
Others
GeoLocation
More
Others
Pareto Optimization
More
Others
Gauss Optimization
More
Others
Decisions Convolutions
More
Others
Welford's Variance
More
Others
Julian Easter
More
Others
Pollard's Rho
More
Others
GeoLocation Hash
More
Others
Geofencing
More
Others
Triangulation Algorithm
More
Problems
Problems
/
Stable Marriage
Accepter
More
Problems
/
Stable Marriage
Proposer
More
Recursive
Recursive
Flood Fill
More
Searches
Searches
Binary Search
+15
More
Searches
Fibonacci Search
+5
More
Searches
Interpolation Search
+6
More
Searches
Jump Search
+8
More
Searches
Linear Search
+14
More
Searches
Recursive Binary Search
More
Sequences
Sequences
A000002 Kolakoski
More
Sequences
A000004 Zero
More
Sequences
A000005 Count of Divisors
More
Sequences
A000008 Make Change
More
Sequences
A000012 All Ones
More
Sequences
A000027 Natural
More
Sequences
A000032 Lucas Numbers
More
Sequences
A000040 Primes
More
Sequences
A000045 Fibonacci
More
Sequences
A000079 Powers of 2
More
Sequences
A000108 Catalan
More
Sequences
A000120 1's Counting
More
Sequences
A000124 Central Polygonal Numbers
More
Sequences
A000125 Cake Numbers
More
Sequences
A000142 Factorial
More
Sequences
A000213 Tribonacci Numbers
More
Sequences
A000215 Fermat Numbers
More
Sequences
A000288 Tetranacci Numbers
More
Sequences
A000290 Squares
More
Sequences
A000292 Tetrahedral numbers
More
Sequences
A000578 Cubes
More
Sequences
A000720 PrimePi
More
Sequences
A001146 Number of Boolean Functions
More
Sequences
A001462 Golomb's
More
Sequences
A001478 Negative Integers
More
Sequences
A002110 Primorial Numbers
More
Sequences
A002717 Matchstick Triangle Arrangement
More
Sequences
A005132 Recaman's
More
Sequences
A006577 Number of '3n+1' steps to reach 1
More
Sequences
A006862 Euclid Numbers
More
Sequences
A006879 Number of Primes by Number of Digits
More
Sequences
A006880 Number of Primes by Powers of 10
More
Sequences
A007318 Binomial
More
Sequences
A007395 All Twos
More
Sequences
A010051 Binary Prime Constant
More
Sequences
A010701 All Threes
More
Sequences
A011557 Powers of 10
More
Sequences
A057588 Kummer Numbers
More
Sequences
A019434 Fermat Primes
More
Sequences
A181391 Van Eck's
More
Shufflers
Shufflers
Fisher-Yates Shuffler
More
Sorts
Sorts
Binary Insertion Sort
+4
More
Sorts
Bogo Sort
+8
More
Sorts
Bubble Sort
+19
More
Sorts
Cocktail Sort
+3
More
Sorts
Comb Sort
+8
More
Sorts
Cycle Sort
+5
More
Sorts
Exchange Sort
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Pancake Sort
+7
More
Sorts
Quick Sort
+19
More
Sorts
/
Comparison
Median of three pivot
More
Sorts
/
Comparison
Middle point pivot
More
Sorts
/
Comparison
Random pivot
More
Sorts
Selection Sort
+14
More
Sorts
Shell Sort
+10
More
Sorts
Tim Sort
+3
More
Sorts
/
Comparison
Simplified Tim Sort
More
Sorts
Counting Sort
+9
More
Sorts
Bucket Sort
+5
More
Sorts
Radix Sort
+9
More
Sorts
Msd Radix Sort
More
Stacks
Stacks
Balanced Parentheses Checker
More
Strings
Strings
Burrows Wheeler Transform
More
Strings
Boyer Moore Search
More
Strings
/
Similarity
Cosine Similarity
More
Strings
Damerau Levenshtein Distance
More
Strings
Hamming Distance
+7
More
Strings
/
Similarity
Jaro Similarity
More
Strings
Jaro Winkler Distance
More
Strings
/
Similarity
Optimal String Alignment
More
Strings
/
Pattern Matching
Bitop Pattern Matching
More
Strings
Naive String Search
More
Strings
Rabin Karp
+2
More
Strings
Boyer Moore
More
Strings
/
Pattern Matching
Knuth–Morris–Pratt Search
More
Strings
Wildcard Pattern Matching
More
Strings
/
Pattern Matching
Z-block substring search
More
Strings
Longest Consecutive Character
More
Strings
Palindrome Checker
More
Strings
Get all permutations of a string
More
Strings
Levenshtein Distance
+2
More
Tree
Tree
Breadth First Tree Traversal
More
© The Algorithms 2024
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact