The Algorithms logo
The Algorithms
AboutDonate
undefined

Knapsack

Backtracking

All Combination of Size K

Sudoku Solver

Big Integer

Hello Bigmath

Blockchain

Chinese Remainder Theorem

Ciphers

Another Rot 13

Hashing Traits

Morse Code

Polybius

Transposition

Theoretical Rot 13

Vigenere

Diffie Hellman

XOR Cipher

Kerninghan

Compression

Run Length Encoding

Run Length Encoding

Conversions

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

Geometry

Closest Points

Graphs

Two Satisfiability

Centroid Decomposition

Graph Enumeration

Bellman Ford

Depth First Search Tic Tac Toe

Prufer Code

Breadth First Search

Strongly Connected Components

Bipartite Matching

Dijkstra

Depth First Search

Disjoint Set Union

Dinic Maxflow

Minimum Spanning Tree

Greedy Methods

Fractional Knapsack

Hashing
Math

Extended Euclidean Algorithm

Karatsuba Multiplication

Matrix Ops

Quadratic Residue

Signum

Gcd of N Numbers

Random

Baby Step Giant Step

Trial Division

Perfect Numbers

Miller Rabin

Linear Sieve

Faster Perfect Numbers

Square Root

Pollard Rho

Factors

Prime

Mersenne Primes

Sieve of Eratosthenes

Greatest Common Divisor

Aliquot Sum

Collatz Sequence

Zellers Congruence Algorithm

Fast Power

Newton Raphson

Armstrong Number

Amicable Numbers

Simpson Integration

Prime Factors

Nthprime

Prime

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

Union Find

Ternary Search

Ternary Search Min Max Recursive

Kth Smallest Heap

Fibonacci Search

Linear Search

+12

More

Exponential Search

Ternary Search Min Max

Binary Search Recursive

Interpolation Search

Binary Search

+13

More

Jump Search

Ternary Search Recursive

Kth Smallest

Quick Select

Sorts

Topological Sort

Fisher Yates Shuffle

Counting Sort

Tim Sort

Bitonic Sort

Cocktail Shaker Sort

Exchange Sort

Heap Sort

+12

More

Sleep Sort

Shell Sort

Bogo Sort

Dutch National Flag Sort

Insertion Sort

+17

More

Bubble Sort

+18

More

Bead Sort

Wiggle Sort

Odd Even Sort

Patience Sort

Pigeonhole Sort

Selection Sort

+13

More

Comb Sort

Cycle Sort

Gnome Sort

Stooge Sort

Quick Sort

+18

More

Bucket Sort

Pancake Sort

Radix Sort

Strings

Jaro Winkler Distance

Boyer Moore Search

Manacher

Duval Algorithm

Levenshtein Distance

Autocomplete Using Trie

Aho Corasick

Z Algorithm

Rabin Karp

Burrows Wheeler Transform

Suffix Array

Suffix Tree

Knuth Morris Pratt

Hamming Distance

Palindrome