The Algorithms logo
The Algorithms
Audio Filters

Butterworth Filter

Show Response

Equal Loudness Filter


Sum of Subsets

Rat in Maze

N Queens Math

All Combinations

Hamiltonian Cycle

Knight Tour

Sudoku Solver

All Permutations

All Subsequences

Combination Sum

Bit Manipulation

Binary Xor Operator

Is Power of Two

Index of Rightmost Set Bit

Count Number of One Bits

Binary or Operator

Binary Count Setbits

Highest Set Bit

Binary Count Trailing Zeros

Binary and Operator

Binary Twos Complement

Single Bit Manipulation Operations

Count 1s Brian Kernighan Method

Gray Code Sequence


Diophantine Equation

Modular Division

Chinese Remainder Theorem

Boolean Algebra
Cellular Automata

Conways Game of Life

Nagel Schrekenberg

One Dimensional


Enigma Machine 2

Hill Cipher

Mono Alphabetic Ciphers

Rsa Key Generator

Shuffled Shift Cipher

Cryptomath Module

Caesar Cipher

Vigenere Cipher

Trafid Cipher

Transposition Cipher

Transposition Cipher Encrypt Decrypt File

Beaufort Cipher

Decrypt Caesar with Chi Squared

Simple Substitution Cipher

Baconian Cipher

XOR Cipher

Rsa Cipher

Rail Fence Cipher

Morse Code

Onepad Cipher

Simple Keyword Cypher

Affine Cipher

Rabin Miller

Porta Cipher

Brute Force Caesar Cipher

Elgamal Key Generator


Playfair Cipher

Deterministic Miller Rabin

Rsa Factorization

Diffie Hellman

Mixed Keyword Cypher


Run Length Encoding

Peak Signal to Noise Ratio

Burrows Wheeler

Lempel Ziv

Lempel Ziv Decompress

Computer Vision

Harris Corner

Mean Threshold

Flip Augmentation

Cnn Classification

Pooling Functions

Mosaic Augmentation


Speed Conversions

Decimal to Binary

Rgb Hsv Conversion

Binary to Octal

Binary to Decimal

Hex to Bin

Excel Title to Column

Decimal to Binary Recursion

Prefix Conversions String

Decimal to Hexadecimal

Decimal to Any

Hexadecimal to Decimal

Prefix Conversions

Roman Numerals

Pressure Conversions

Volume Conversions

Astronomical Length Scale Conversion

Length Conversion

Molecular Chemistry

Binary to Hexadecimal

Decimal to Octal

Weight Conversion

Octal to Decimal

Temperature Conversions

Data Structures

Inorder Tree Traversal 2022

Maximum Fenwick Tree

Binary Search Tree

Merge Two Binary Trees

Diff Views of Binary Tree

Binary Tree Path Sum

Lowest Common Ancestor

Binary Tree Traversals

Binary Tree Node Sum

Number of Possible Binary Trees

Non Recursive Segment Tree

Binary Search Tree Recursive

Priority Queue Using List

Double Ended Queue

Queue on Pseudo Stack

Circular Queue Linked List

Circular Linked List

Doubly Linked List

Doubly Linked List Two

Singly Linked List

Middle Element of Linked List

Alternate Disjoint Set

Randomized Heap

Hash Table with Linked List

Quadratic Probing

Balanced Parentheses

Next Greater Element

Stack with Doubly Linked List

Evaluate Postfix Notations

Stock Span Problem

Infix to Postfix Conversion

Prefix Evaluation

Postfix Evaluation

Stack with Singly Linked List

Infix to Prefix Conversion

Dijkstras Two Stack Algorithm

Digital Image Processing
Divide and Conquer

Heaps Algorithm

Heaps Algorithm Iterative

Kth Order Statistic

Strassen Matrix Multiplication

Closest Pair of Points

Max Subarray Sum

Max Difference Pair

Dynamic Programming

Min Distance up Bottom

Max Sum Contiguous Subsequence

Subset Generation

Integer Partition

Minimum Cost Path

Longest Sub Array

Palindrome Partitioning

Longest Increasing Subsequence

Longest Common Subsequence

Floyd Warshall

Iterating Through Submasks

Combination Sum Iv

Minimum Coin Change

Minimum Squares to Represent a Number

Optimal Binary Search Tree

Matrix Chain Order

Minimum Steps to One

Minimum Tickets Cost

Minimum Partition

Longest Increasing Subsequence O(nlogn)

Longest Common Substring

Max Non Adjacent Sum


Ind Reactance

Resistor Equivalence

Electric Conductivity

Electrical Impedance

Electric Power

Coulombs Law

Resonant Frequency

Builtin Voltage

Carrier Concentration

File Transfer

Equated Monthly Installments

Price Plus Tax



Julia Sets

Sierpinski Triangle

Koch Snowflake

Fuzzy Logic

Fuzzy Operations

Genetic Algorithm

Lamberts Ellipsoidal Distance

Haversine Distance


Bezier Curve

Vector 3 for 2d Rendering


Depth First Search

Scc Kosaraju

Dijkstra Algorithm

Markov Chain

Minimum Spanning Tree Boruvka

Greedy Min Vertex Cover

Dijkstra Alternate

Frequent Pattern Graph Miner

Kahns Algorithm Topo

Minimum Spanning Tree Prims

Breadth First Search Shortest Path 2

Minimum Spanning Tree Kruskal

Random Graph Generator

Greedy Best First

Check Bipartite Graph Dfs

Graph Matrix

Graphs Floyd Warshall

Minimum Spanning Tree Prims 2

Finding Bridges

Breadth First Search

Eulerian Path and Circuit for Undirected Graph

Multi Heuristic Astar

Bellman Ford

Page Rank

Breadth First Search Shortest Path

Gale Shapley Bigraph

Directed and Undirected (Weighted) Graph

Bidirectional a Star

G Topological Sort


Basic Graphs


Edmonds Karp Multiple Source and Sink

Strongly Connected Components

Bidirectional Breadth First Search

Dijkstra 2

Depth First Search 2

Connected Components

Minimum Spanning Tree Kruskal 2

Tarjans Scc

Articulation Points

Even Tree

Minimum Path Sum

Breadth First Search 2

Check Cycle

Kahns Algorithm Long

Check Bipartite Graph Bfs

Matching Min Vertex Cover

Breadth First Search Zero One Shortest Path

Graph List

Greedy Methods

Fractional Knapsack 2

Optimal Merge Pattern

Fractional Knapsack


Recursive Approach Knapsack

Greedy Knapsack

Linear Algebra

Rayleigh Quotient

Conjugate Gradient

Transformations 2d

Schur Complement

Power Iteration

Polynom for Points

Machine Learning

Gradient Descent

Random Forest Classifier

Lstm Prediction

Local Weighted Learning

Similarity Search

Scoring Functions

Random Forest Regressor

Gradient Boosting Regressor

Support Vector Machines

K Nearest Neighbours

Linear Regression

Self Organizing Map

Multilayer Perceptron Classifier

Linear Discriminant Analysis

Word Frequency Functions

Sequential Minimum Optimization

Polymonial Regression

Logistic Regression

Xgboost Regressor

Xgboost Classifier

Gaussian Naive Bayes

Data Transformations


Pollard Rho

Binomial Distribution

Weird Number

Maclaurin Series

Jaccard Similarity

Find Max Recursion

Prime Sieve Eratosthenes

Gamma Recursive

Single Indeterminate Operations


Aliquot Sum

Average Absolute Deviation

Addition without Arithmetic

Modular Exponential

Hamming Numbers

Binary Exp Mod


Print Multiplication Table

Miller Rabin

Armstrong Number

Greedy Coin Change

Line Length

Lucas Series

Factorial Recursive

Least Common Multiple

Sylvester Sequence

3n Plus 1

Segmented Sieve

Euclidean Gcd

Average Median


Largest Subarray Sum

Extended Euclidean Algorithm

Binomial Coefficient

Nevilles Method

Decimal Isolate

Bailey Borwein Plouffe

Is Ip v 4 Address Valid


Fibonacci Numbers



Median of Two Arrays

Find Min Recursion

Find Min

Matrix Exponentiation

Euclidean Distance

Zellers Congruence

Hardy Ramanujanalgo



Proth Number

Points Are Collinear 3d

Arc Length

Double Factorial Iterative

Average Mean



Monte Carlo Dice


Perfect Square


Euler Modified

Is Square Free

Krishnamurthy Number

Binary Exponentiation 2

Power Using Recursion


Polynomial Evaluation

Max Sum Sliding Window


Newton Raphson

Pi Monte Carlo Estimation

Chudnovsky Algorithm

Triplet Sum

Sum of Harmonic Series

Basic Maths

Eulers Totient

Kth Lexicographic Permutation

Greatest Common Divisor

Square Root

Find Max

Harmonic Series

Arithmetic Mean


Hexagonal Numbers

Geometric Series

Runge Kutta


Double Factorial Recursive

Check Polygon

Manhattan Distance

Ugly Numbers


Factorial Iterative

Collatz Sequence

Allocation Number

Two Sum

Sieve of Eratosthenes

Sum of Digits

Catalan Number

Sum of Arithmetic Series

Gaussian Error Linear Unit

Monte Carlo

Numerical Integration

Prime Factors

Two Pointer

Carmichael Number

Euler Method

Degrees to Radians

Perfect Cube

Radix 2 Fft

Area Under Curve

Mobius Function

Average Mode

Sigmoid Linear Unit



Perfect Number

Largest of Very Large Numbers

Fermats Little Theorem

Integration by Simpson Approx

Simpson Rule

Sum of Geometric Progression

Binary Exponentiation

Sock Merchant


Number of Digits

Qr Decomposition

Trapezoidal Rule


Quadratic Equations Complex Numbers

Binary Exponentiation 3

Fibonacci Numbers




Newton Raphson



Largest Square Area in Matrix

Matrix Class

Count Islands in Matrix

Cramers Rule 2x 2

Sherman Morrison

Spiral Print

Max Area of Island

Inverse of Matrix

Nth Fibonacci Using Matrix Exponentiation

Rotate Matrix

Searching in Sorted Matrix

Pascal Triangle

Count Paths

Matrix Operation

Binary Search Matrix

Networking Flow
Neural Network

Back Propagation Neural Network

Convolution Neural Network

2 Hidden Layers Neural Network

Simple Neural Network

Numerical Analysis

Newton Raphson New

Lu Decomposition

Gaussian Elimination

In Static Equilibrium

Newton Forward Interpolation

Jacobi Iteration Method




Dijkstra Bankers Algorithm

Gauss Easter

Nested Brackets

Davisb Putnamb Logemannb Loveland

Tower of Hanoi

Linear Congruential Generator

Least Recently Used

Lfu Cache

Alternative List Arrange


Graham Scan

Fischer Yates Shuffle

Activity Selection

Scoring Algorithm

Maximum Subarray

Lru Cache


Newtons Law of Gravitation

Potential Energy

Ideal Gas Law

Horizontal Projectile Motion

Centripetal Force

N Body Simulation

Casimir Effect

Hubble Parameter

Rms Speed of Molecule

Archimedes Principle

Shear Stress

Kinetic Energy

Malus Law

Lorentz Transformation Four Vector

Newtons Second Law of Motion


Q Full Adder

Quantum Teleportation

Q Fourier Transform

Single Qubit Measure

Half Adder

Deutsch Jozsa

Superdense Coding

Quantum Entanglement

Ripple Adder Classic


Shortest Job First

Non Preemptive Shortest Job First

First Come First Served

Highest Response Ratio Next

Job Sequencing with Deadline

Multi Level Feedback Queue

Round Robin


Validate Solutions

Validate Filenames

Build Directory Md


Double Linear Search

Simulated Annealing

Binary Tree Traversal

Quick Select

Ternary Search

Linear Search



Hill Climbing

Simple Binary Search

Fibonacci Search

Double Linear Search Recursion

Sentinel Linear Search

Interpolation Search

Tabu Search

Jump Search

Binary Search



Tim Sort

Bogo Sort

Counting Sort

Recursive Insertion Sort

Strand Sort

Cycle Sort