The Algorithms logo
The Algorithms
AboutDonate
undefined

Knapsack

Backtracking

Subarray Sum

Sudoku Solver

Generate Parentheses

N Queens All Solution Optimised

Graph Coloring

Nqueen Print All Solutions

Knight Tour

Magic Sequence

Wildcard Matching

Bit Manipulation

Find Non Repeating Number

Travelling Salesman Using Bit Manipulation

Count Bits Flip

Count of Set Bits

Count of Trailing Ciphers in Factorial N

Blockchain

Modular Division

Ciphers

Caesar Cipher

Vigenere Cipher

XOR Cipher

A 1z 26 Cipher

Hill Cipher

Elliptic Curve Key Exchange

Base 64 Encoding

Uint 256 T

Uint 128 T

Atbash Cipher

Morse Code

Compression
Conversions

Decimal to Binary

Decimal to Hexadecimal

CPU Scheduling Algorithms
Data Structures

Lowest Common Ancestor

Queue Using Two Stacks

Dsu Union Rank

Queue Using Linked List

Trie Using Hashmap

Reverse a Linked List

Circular Queue Using Linked List

Binary Search Tree 2

Queue Using Array

Linkedlist Implentation Usingarray

Dsu Path Compression

Linked List

Stack Using Array

Doubly Linked List

Morrisinorder

Binary Search Tree

Stack Using Queue

Stack with Singly Linked List

Queue Using Array 2

Queue Using Linked List

Postfix Evaluation

Circular Linked List

Divide and Conquer

Strassen Matrix Multiplication

Karatsuba Algorithm for Fast Multiplication

Dynamic Programming

Egg Dropping Puzzle

Maximum Circular Subarray

Fibonacci Bottom Up

Longest Increasing Subsequence

Searching of Element in Dynamic Array

Palindrome Partitioning

Longest Common Subsequence

Longest Increasing Subsequence (Nlogn)

Floyd Warshall

Minimum Edit Distance

Longest Common String

Shortest Common Supersequence

Partition Problem

Coin Change Topdown

Matrix Chain Multiplication

Longest Palindromic Subsequence

Geometry

Graham Scan Algorithm

Line Segment Intersection

Jarvis Algorithm

Graham Scan Functions

Graphics

Spirograph

Graphs

Cycle Check Directed Graph

Bridge Finding with Tarjan Algorithm

Hopcroft Karp

Connected Components

Topological Sort by Kahns Algo

Is Graph Bipartite

Kosaraju

Hamiltons Cycle

Max Flow with Ford Fulkerson and Edmond Karp Algo

Depth First Search with Stack

Depth First Search

Travelling Salesman Problem

Breadth First Search

Is Graph Bipartite 2

Kruskal

Bi Directional Dijkstra

Dijkstra

Connected Components with Dsu

Dijkstra

Bellman Ford

Greedy Algorithms

Boruvkas Minimum Spanning Tree

Kruskals Minimum Spanning Tree

Prims Minimum Spanning Tree

Hashing

Double Hash Hash Table

Chaining

Quadratic Probing Hash Table

Linear Probing Hash Table

Machine Learning

Kohonen Som Trace

Kohonen Som Topology

Adaline Learning

K Nearest Neighbors

Ordinary Least Squares Regressor

Neural Network

Math

Check Factorial

Extended Euclid Algorithm

Euler's Totient

Armstrong Number

Double Factorial

Fibonacci Large

Binomial Calculate

Quadratic Equations Complex Numbers

Finding Number of Digits in a Number

Aliquot Sum

Vector Cross Product

Fibonacci Fast

Sum of Digits

Realtime Stats

Sum of Binomial Coefficient

Primes up to Billion

Sieve of Eratosthenes

Binary Exponent

Integral Approximation

N Bonacci

Gcd Recursive Euclidean

Modular Exponentiation

Linear Recurrence Matrix

Ncr Modulo P

Fibonacci Sum

Sqrt Double

Large Number

Gcd of N Numbers

Approximate Pi

Fibonacci Numbers

+10

More

Modular Inverse Simple

Volume

Power of Two

String Fibonacci

Perimeter

Integral Approximation 2

Factorial

+11

More

Modular Inverse Fermat Little Theorem

Eratosthenes

N Choose R

Gcd Iterative Euclidean

Prime Factorization

Magic Number

Check Amicable Pair

Complex Numbers

Least Common Multiple

Number of Positive Divisors

Miller Rabin

Fibonacci Matrix Exponentiation

Inv Sqrt

Power for Huge Numbers

Fast Power

Largest Power

Large Factorial

Matrix Exponentiation

Qr Decomposition

Bisection Method

Runge Kutta

Armstrong Number

Matrix

Spiral Print

Pascal Triangle

Numerical Analysis

Gaussian Elimination

Lu Decomposition

Numerical Methods

Inverse Fast Fourier Transform

False Position

Babylonian Method

Qr Eigen Values

Golden Search Extrema

Ode Forward Euler

Newton Raphson Method

Fast Fourier Transform

Midpoint Integral Method

Successive Approximation

Ode Semi Implicit Euler

Composite Simpson Rule

Durand Kerner Roots

Ode Midpoint Euler

Brent Method Extrema

Operations on Datastructures

Selectionsortlinkedlist

Get Size of Linked List

Circular Queue Using Array

Intersection of Two Arrays

Reverse a Linked List Using Recusion

Inorder Successor of Bst

Others

Smallest Circle

Vector Important Functions

Happy Number

Tower of Hanoi

Decimal to Roman Numeral

Iterative Tree Traversals

Lru Cache

Recursive Tree Traversal

Palindrome of Number

Sparse Matrix

Paranthesis Matching

Kadanes 3

Buzz Number

Fast Integer Input

Stairs Pattern

Physics

Ground to Ground Projectile Motion

Probability

Geometric Dist

Addition Rule

Bayes Theorem

Binomial Dist

Windowed Median

Poisson Dist

Range Queries

Persistent Seg Tree Lazy Prop

Prefix Sum Array

Heavy Light Decomposition

Sparse Table

Sparse Table

Searches

Interpolation Search

Jump Search

Text Search

Ternary Search

Linear Search

+12

More

Fibonacci Search

Floyd Cycle Detection Algo

Median Search

Hash Search

Saddleback Search

Interpolation Search 2

Binary Search

+13

More

Exponential Search

Median Search 2

Sublist Search

Sorts

Topological Sort

Insertion Sort

+17

More

Stooge Sort

Quick Sort

+18

More

Shell Sort

Radix Sort 2

Gnome Sort

Wave Sort

Bucket Sort

Pigeonhole Sort

Dnf Sort

Tim Sort

Cycle Sort

Cocktail Selection Sort

Odd Even Sort

Bead Sort

Selection Sort Iterative

Counting Sort

Radix Sort

Merge Insertion Sort

Random Pivot Quick Sort

Recursive Bubble Sort

Strand Sort

Bubble Sort

+18

More

Pancake Sort

Selection Sort Recursive

Wiggle Sort

Count Inversions

Quick Sort 3

Comb Sort

Numeric String Sort

Bitonic Sort

Heap Sort

+12

More

Bogo Sort

Counting Sort String

Shell Sort 2

Non Recursive Merge Sort

Swap Sort

Library Sort

Slowsort

Binary Insertion Sort

Strings

Hamming Distance

Brute Force String Searching

Z Function

Horspool

Manacher Algorithm

Knuth Morris Pratt

Rabin Karp