The Algorithms logo
The Algorithms
AboutDonate
undefined

Knapsack

Backtracking

Knight Tour

Nqueen Print All Solutions

Wildcard Matching

N Queens All Solution Optimised

Graph Coloring

Magic Sequence

Sudoku Solver

Subarray Sum

Bit Manipulation

Count of Trailing Ciphers in Factorial N

Count of Set Bits

Count Bits Flip

Find Non Repeating Number

Travelling Salesman Using Bit Manipulation

Blockchain

Modular Division

Ciphers

Atbash Cipher

Uint 256 T

Caesar Cipher

Vigenere Cipher

Base 64 Encoding

Morse Code

Hill Cipher

Elliptic Curve Key Exchange

Uint 128 T

A 1z 26 Cipher

XOR Cipher

Compression
Conversions

Decimal to Binary

Decimal to Hexadecimal

CPU Scheduling Algorithms
Data Structures

Postfix Evaluation

Queue Using Array 2

Stack Using Array

Queue Using Linkedlist

Queue Using Array

Binary Search Tree

Trie Using Hashmap

Queue Using Two Stacks

Binary Search Tree 2

Dsu Union Rank

Morrisinorder

Circular Queue Using Linked List

Doubly Linked List

Dsu Path Compression

Queue Using Linkedlist

Linked List

Reverse a Linked List

Linkedlist Implentation Usingarray

Stack Using Queue

Stack with Singly Linked List

Circular Linked List

Lowest Common Ancestor

Divide and Conquer

Karatsuba Algorithm for Fast Multiplication

Strassen Matrix Multiplication

Dynamic Programming

Longest Increasing Subsequence

Matrix Chain Multiplication

Searching of Element in Dynamic Array

Palindrome Partitioning

Longest Palindromic Subsequence

Minimum Edit Distance

Partition Problem

Shortest Common Supersequence

Longest Common Subsequence

Longest Common String

Floyd Warshall

Egg Dropping Puzzle

Fibonacci Bottom Up

Longest Increasing Subsequence (Nlogn)

Coin Change Topdown

Maximum Circular Subarray

Geometry

Jarvis Algorithm

Graham Scan Functions

Graham Scan Algorithm

Line Segment Intersection

Graphics

Spirograph

Graphs

Bridge Finding with Tarjan Algorithm

Kruskal

Connected Components with Dsu

Topological Sort by Kahns Algo

Breadth First Search

Travelling Salesman Problem

Is Graph Bipartite

Max Flow with Ford Fulkerson and Edmond Karp Algo

Hamiltons Cycle

Hopcroft Karp

Depth First Search

Cycle Check Directed Graph

Dijkstra

Depth First Search with Stack

Kosaraju

Is Graph Bipartite 2

Bi Directional Dijkstra

Connected Components

Dijkstra

Bellman Ford

Greedy Algorithms

Boruvkas Minimum Spanning Tree

Kruskals Minimum Spanning Tree

Prims Minimum Spanning Tree

Hashing

Quadratic Probing Hash Table

Double Hash Hash Table

Chaining

Linear Probing Hash Table

Machine Learning

Neural Network

Kohonen Som Topology

K Nearest Neighbors

Adaline Learning

Ordinary Least Squares Regressor

Kohonen Som Trace

Math

Matrix Exponentiation

Volume

Fibonacci Matrix Exponentiation

Sqrt Double

Gcd Iterative Euclidean

N Choose R

Miller Rabin

Power for Huge Numbers

Factorial

+11

More

Magic Number

Number of Positive Divisors

Large Number

Gcd Recursive Euclidean

Armstrong Number

Binary Exponent

Check Factorial

Sieve of Eratosthenes

Realtime Stats

Inv Sqrt

Prime

Gcd of N Numbers

Integral Approximation

Complex Numbers

Ncr Modulo P

Prime

Fibonacci Large

Perimeter

Double Factorial

Fibonacci Sum

Large Factorial

Least Common Multiple

Fibonacci Fast

Aliquot Sum

Integral Approximation 2

Fast Power

Sum of Digits

N Bonacci

Check Amicable Pair

Extended Euclid Algorithm

Euler's Totient

Linear Recurrence Matrix

Modular Inverse Fermat Little Theorem

Modular Exponentiation

Prime Factorization

Binomial Calculate

Modular Inverse Simple

Largest Power

String Fibonacci

Approximate Pi

Fibonacci Numbers

+10

More

Sum of Binomial Coefficient

Power of Two

Vector Cross Product

Finding Number of Digits in a Number

Primes up to Billion

Qr Decomposition

Bisection Method

Runge Kutta

Armstrong Number

Matrix

Pascal Triangle

Spiral Print

Numerical Analysis

Lu Decomposition

Gaussian Elimination

Numerical Methods

Midpoint Integral Method

False Position

Durand Kerner Roots

Inverse Fast Fourier Transform

Composite Simpson Rule

Ode Midpoint Euler

Fast Fourier Transform

Ode Semi Implicit Euler

Babylonian Method

Golden Search Extrema

Brent Method Extrema

Ode Forward Euler

Qr Eigen Values

Newton Raphson Method

Successive Approximation

Operations on Datastructures

Reverse a Linked List Using Recusion

Circular Queue Using Array

Inorder Successor of Bst

Get Size of Linked List

Intersection of Two Arrays

Selectionsortlinkedlist

Others

Sparse Matrix

Happy Number

Fast Integer Input

Recursive Tree Traversal

Tower of Hanoi

Lru Cache

Iterative Tree Traversals

Vector Important Functions

Buzz Number

Palindrome of Number

Kadanes 3

Stairs Pattern

Decimal to Roman Numeral

Smallest Circle

Paranthesis Matching

Physics

Ground to Ground Projectile Motion

Probability

Bayes Theorem

Binomial Dist

Poisson Dist

Geometric Dist

Addition Rule

Windowed Median

Range Queries

Persistent Seg Tree Lazy Prop

Heavy Light Decomposition

Prefix Sum Array

Searches

Text Search

Exponential Search

Fibonacci Search

Median Search

Saddleback Search

Median Search 2

Jump Search

Interpolation Search 2

Interpolation Search

Linear Search

+12

More

Sublist Search

Ternary Search

Hash Search

Binary Search

+13

More

Floyd Cycle Detection Algo

Sorts

Topological Sort

Merge Insertion Sort

Wiggle Sort

Bogo Sort

Slowsort

Bead Sort

Shell Sort

Wave Sort

Numeric String Sort

Swap Sort

Pancake Sort

Bubble Sort

+18

More

Radix Sort 2

Comb Sort

Gnome Sort

Counting Sort String

Tim Sort

Quick Sort 3

Non Recursive Merge Sort

Binary Insertion Sort

Quick Sort

+18

More

Cocktail Selection Sort

Pigeonhole Sort

Bucket Sort

Insertion Sort

+17

More

Cycle Sort

Count Inversions

Strand Sort

Shell Sort 2

Radix Sort

Random Pivot Quick Sort

Heap Sort

+12

More

Recursive Bubble Sort

Counting Sort

Bitonic Sort

Library Sort

Selection Sort Iterative

Dnf Sort

Odd Even Sort

Selection Sort Recursive

Strings

Hamming Distance

Brute Force String Searching

Horspool

Manacher Algorithm

Z Function

Knuth Morris Pratt

Rabin Karp