The Algorithms logo
The Algorithms
AboutDonate
undefined

Knapsack

Backtracking

All Combination of Size K

Sudoku Solver

Big Integer

Hello Bigmath

Fast Factorial

Blockchain

Chinese Remainder Theorem

Ciphers

Vigenere

Another Rot 13

XOR Cipher

Kerninghan

Polybius

Rail Fence

Transposition

Diffie Hellman

Hashing Traits

Theoretical Rot 13

Morse Code

Blake 2b

Compression

Run Length Encoding

Run Length Encoding

Conversions

Binary to Decimal

Decimal to Binary

Data Structures
Divide and Conquer
Dynamic Programming

Floyd Warshall

Longest Increasing Subsequence

Longest Common Substring

Longest Common Subsequence

Subset Generation

Longest Continuous Increasing Subsequence

Financial
General

Huffman Encoding

Steinhaus Johnson Trotter

Geometry

Closest Points

Graphs

Depth First Search Tic Tac Toe

Graph Enumeration

Disjoint Set Union

Depth First Search

Centroid Decomposition

Minimum Spanning Tree

Dinic Maxflow

Bellman Ford

Two Satisfiability

Strongly Connected Components

Dijkstra

Bipartite Matching

Prufer Code

Breadth First Search

Greedy Methods

Fractional Knapsack

Hashing
Machine Learning
Math

Sieve of Eratosthenes

Bell Numbers

Trial Division

Pollard Rho

Prime Factors

Faster Perfect Numbers

Armstrong Number

Quadratic Residue

Gcd of N Numbers

Square Root

Linear Sieve

Perfect Numbers

Miller Rabin

Extended Euclidean Algorithm

Amicable Numbers

Newton Raphson

Signum

Simpson Integration

Karatsuba Multiplication

Zellers Congruence Algorithm

Collatz Sequence

Nthprime

Matrix Ops

Fast Power

Sum of Digits

Mersenne Primes

Factors

Aliquot Sum

Greatest Common Divisor

Random

Baby Step Giant Step

Two Sum

Fibonacci Numbers

+10

More
Matrix

Pascal Triangle

Navigation
Numerical Analysis

Gaussian Elimination

Numerical Methods

Fast Fourier Transform

Others

Doomsday

Maximum Subarray

Range Queries

Heavy Light Decomposition

Searches

Ternary Search

Interpolation Search

Ternary Search Min Max

Quick Select

Linear Search

+12

More

Fibonacci Search

Ternary Search Min Max Recursive

Kth Smallest

Binary Search Recursive

Exponential Search

Binary Search

+13

More

Kth Smallest Heap

Jump Search

Ternary Search Recursive

Union Find

Sorts

Topological Sort

Cocktail Shaker Sort

Insertion Sort

+17

More

Radix Sort

Tim Sort

Bucket Sort

Counting Sort

Wiggle Sort

Stooge Sort

Sleep Sort

Pancake Sort

Gnome Sort

Quick Sort

+18

More

Odd Even Sort

Bitonic Sort

Bead Sort

Patience Sort

Comb Sort

Dutch National Flag Sort

Selection Sort

+13

More

Pigeonhole Sort

Shell Sort

Heap Sort

+12

More

Bubble Sort

+18

More

Bogo Sort

Cycle Sort

Exchange Sort

Fisher Yates Shuffle

Strings

Knuth Morris Pratt

Palindrome

Manacher

Suffix Tree

Burrows Wheeler Transform

Aho Corasick

Autocomplete Using Trie

Z Algorithm

Hamming Distance

Duval Algorithm

Suffix Array

Levenshtein Distance

Jaro Winkler Distance

Rabin Karp

Boyer Moore Search