The Algorithms logo
The Algorithms
AboutDonate
undefined

Knapsack

Minimizing Lateness

Audio Filters
Backtracking

Hamiltonian Cycle

Maze Recursion

Word Search

Knights Tour

Combination

All Paths From Source To Target

Permutation

Array Combination

Sudoku Solver

Ciphers

A 5 Key Stream Generator

Composite LFSR

A 5 Cipher

Base LFSR

Product Cipher

Affine Cipher

Simple Sub Cipher

Columnar Transposition Cipher

Blowfish

Simple Substitution Cipher

Vigenere

Polybius

Hill Cipher

AES Encryption

Compression
Conversions

Binary to Octal

Decimal to Binary

Any Base To Any Base

Octal To Hexadecimal

Decimal to Octal

Integer To Roman

Hexa Decimal To Binary

Decimal To Any Base

Binary to Decimal

Any Base To Decimal

Decimal to Hexadecimal

Hex To Oct

Octal to Decimal

Turkish To Latin Conversion

Rgb Hsv Conversion

Hexadecimal to Decimal

Binary to Hexadecimal

Roman To Integer

CPU Scheduling Algorithms
Data Structures

Tree Random Node

Zigzag Traversal

Check Binary Tree Is Valid BST

Vertical Order Traversal

BST Recursive Generic

Check If Binary Tree Balanced

Level Order Traversal

Pre Order Traversal

Ceil In Binary Search Tree

Same Trees Check

BST From Sorted Array

Post Order Traversal

Print Top Viewof Tree

Inorder Traversal

Nearest Right Key

Check Tree Is Symmetric

Create Binary Tree From Inorder Preorder

Disjoint Sets

Empty Heap Exception

Min Priority Queue

Hash Map Cuckoo Hashing

Linear Probing Hash Map

Generic Hash Map Using Array

Generic Hash Map Using Array List

Dynamic Array

Decimal To Any Using Stack

Balanced Brackets

Postfix To Infix

Calculate Max Of Min

Stack with Singly Linked List

Next Grater Element

Maximum Minimum Window

Stack Array List

Infix To Postfix

Duplicate Brackets

Largest Rectangle

Next Smaller Element

Generic Array List Queue

Search Singly Linked List Recursion

Create And Detect Loop

Merge K Sorted Linkedlist

Cursor Linked List

Merge Sorted Singly Linked List

Circle Linked List

Singly Linked List

Doubly Linked List

Count Singly Linked List Recursion

Merge Sorted Array List

Connected Component

Bipartite Grapf DFS

Tarjans Algorithm

DIJSKSTRAS ALGORITHM

Queue Using Two Stacks

Devutils

Large Tree Node

Simple Tree Node

Simple Node

Process Details

Search Algorithm

Matrix Search Algorithm

Digital Image Processing
Divide and Conquer

Skyline Algorithm

Strassen Matrix Multiplication

Dynamic Programming

Floyd Warshall

Minimum Sum Partition

Optimal Job Scheduling

Longest Palindromic Substring

Longest Valid Parentheses

Longest Alternating Subsequence

Palindromic Partitioning

New Man Shanks Prime

Partition Problem

Brute Force Knapsack

Matrix Chain Recursive Top Down Memoisation

Longest Increasing Subsequence

Kadane Algorithm

Shortest Common Supersequence Length

Count Friends Pairing

Matrix Chain Multiplication

Knapsack Memoization

Longest Common Subsequence

Dyanamic Programming Knapsack

Longest Palindromic Subsequence

Longest Palindromic Substring

Fractals

Koch Snowflake

Mandelbrot

Graphs

Kruskal

Prim MST

Kosaraju

Bellman Ford

Minimum Path Sum

Dijkstra

Page Rank

Depth First Search

Breadth First Search

Hashing
Io

Buffered Reader

Machine Learning
Math

Fibonacci Numbers

+10

More

Catalan Number

Sieve of Eratosthenes

Least Common Multiple

Sum of Arithmetic Series

Ugly Numbers

Absolute Max

Binomial Coefficient

Pronic Number

Factorial

+11

More

Dudeney Number

Perfect Cube

Binary Pow

Find Kth Number

Pythagorean Triple

Find Min

Max Value

Square Free Integer

Trinomial Triangle

Pollard Rho

Combinations

Square Root With Newton Raphson Method

Pow Recursion

Fibonacci Java Streams

Distance Formula

Linear Diophantine Equations Solver

Armstrong Number

Josephus Problem

Vampire Number

FFT Bluestein

Average

Sum Without Arithmetic Operators

Lucas Series

Parse Integer

Fibonacci Numbers

+10

More

Mobius Function

Find Max Recursion

Palindrome Number

Matrix Util

Absolute Min

Amicable Number

GCD Recursion

Kaprekar Numbers

Find Min Recursion

Keith Number

Convolution

Herons Formula

Magic Square

Factorial Recursion

Non Repeating Element

Standard Deviation

Sum of Digits

Gaussian

Power Of Two Or Not

Collatz Conjecture

Square Root With Babylonian Method

Pi Nilakantha

Vector Cross Product

Perfect Square

Min Value

Juggler Sequence

Euler Method

Liouville Lambda Function

ADT Fraction

Twin Prime

Volume

Reverse Number

Determinant Of Matrix

Long Division

Generic Root

Automorphic Number

Frizzy Number

Fast Inverse Sqrt

Perimeter

Aliquot Sum

Standard Score

Leonardo Number

Krishnamurthy Number

Digital Root

Absolute Value

Perfect Number

Number of Digits

Simpson Integration

Circular Convolution FFT

Prime Factorization

Harshad Number

Median

Find Max

Roman Numeral Util

Convolution FFT

Binary Exponentiation

Fibonacci Numbers

+10

More
Matrix

Inverse of Matrix

Pascal Triangle

Networking Flow

Ford Fulkerson

Numerical Analysis
Operations on Datastructures
Others

Graham Scan

Lfu Cache

Lru Cache

Stack Postfix Notation

Return Subsequence

Eulers Function

Root Precision

Fibbonaci Series

Count Words

Perlin Noise

Verhoeff

Bankers Algorithm

Top K Words

Remove Duplicate From String

Floyd Triangle

Rotate Matrice By 90 Degree

Skyline Problem

Happy Numbers Seq

Line Sweep

Linear Congruential Generator

Reverse Stack Using Recursion

Count Char

Print A Matrix In Spiral Order

Tower of Hanoi

Implementing Auto Completing Features Using Trie

Memory Management Algorithms

Krishnamurthy

Password Gen

Guass Legendre

CRC Algorithm

Brian Kernighan Algorithm

Lowest Base Palindrome

Two Pointers

Insert Delete In Array

Count Set Bits

Mini Max Algorithm

String Match Finite Automata

Palindrome Singly Linked List

Range In Sorted Array

Color Contrast Ratio

Median Of Running Array

Word Boggle

Sparcity

Three Sum Problem

Matrix Transpose

Sort 012 D

Palindrome Prime

Recursive

Flood Fill

Scheduling

RR Scheduling

SJF Scheduling

Searches

Iterative Ternary Search

Jump Search

Monte Carlo Tree Search

Square Root Binary Search

Binary Search

+13

More

Exponental Search

Linear Search Thread

Perfect Binary Search

Row Column Wise Sorted 2d Array Binary Search

Order Agnostic Binary Search

Upper Bound

Ternary Search

KMP Search

Rabin Karp Algorithm

Saddleback Search

Iterative Binary Search

Linear Search

+12

More

Binary Search 2d Array

Fibonacci Search

Search In A Row And Col Wise Sorted Matrix

Union Find

Quick Select

Sort Order Agnostic Binary Search

Lower Bound

How Many Times Rotated

Interpolation Search

Sorts

Stooge Sort

Bucket Sort

Bogo Sort

Radix Sort

Odd Even Sort

Sort Utils

Selection Sort

+13

More

Tim Sort

Sort Algorithm

Counting Sort

Bubble Sort

+18

More

Insertion Sort

+17

More

Heap Sort

+12

More

Slowsort

Topological Sort

Bead Sort

Link List Sort

Dutch National Flag Sort

Dual Pivot Quick Sort

Swap Sort

Cocktail Shaker Sort

Merge Sort Recursive

Pancake Sort

Gnome Sort

Comb Sort

Pigeonhole Sort

Binary Insertion Sort

Wiggle Sort

Bubble Sort Recursion

Sort Utils Random Generator

Dnf Sort

Simple Sort

Tree Sort

Cycle Sort

Bitonic Sort

Merge Sort No Extra Space

Strand Sort

Circle Sort

Quick Sort

+18

More

Shell Sort

Introspective Sort

Strings

Levenshtein Distance

Boyer Moore

Rabin Karp

Hamming Distance

String Compression

Reverse String

Alphabetical

Letter Combinations Of Phone Number

Isomorphic

Check Vowels

Longest Non Repeative Substring

Permute String

Valid Parentheses

Check Anagram

Characters Same

Zig Zag Pattern

Word Ladder

Reverse String Recursive

Horspool Search

Palindrome

Hamming Distance