Algorithms Example
This repository contains examples of various algorithms which were written on different programming languages.
Implemented algorithms with languages:
Language | BrainFuck | C | C# | C++ | Crystal | Go | Haskell | Java | JavaScript | Kotlin | Perl | Python | Racket | Ruby | Rust | Scala | Swift |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AStar Search | |||||||||||||||||
Bellman Ford | |||||||||||||||||
Binary GCD | |||||||||||||||||
Binary Search | |||||||||||||||||
Bitap Algorithm | |||||||||||||||||
Bitonic Sort | |||||||||||||||||
Bloom Filter | |||||||||||||||||
Borweins Algorithm | |||||||||||||||||
Bubble Sort | |||||||||||||||||
Cocktail Sort | |||||||||||||||||
Coin Change | |||||||||||||||||
Conjugate Gradient | |||||||||||||||||
Connected Component Labeling | |||||||||||||||||
Count Sort | |||||||||||||||||
Counting Inversions | |||||||||||||||||
Counting Sort | |||||||||||||||||
Cycle Sort | |||||||||||||||||
Depth First Search | |||||||||||||||||
Diffie Hellman | |||||||||||||||||
Dijkstras | |||||||||||||||||
Doomsday | |||||||||||||||||
Dynamic Programming | |||||||||||||||||
Edit Distance | |||||||||||||||||
Edmonds Karp | |||||||||||||||||
Elevator Algorithm | |||||||||||||||||
Extended Euclidean Algorithm | |||||||||||||||||
Factorial | |||||||||||||||||
Fast Fourier Transform | |||||||||||||||||
Fenwick Tree | |||||||||||||||||
Fibonacci | |||||||||||||||||
Fisher Yates Shuffle | |||||||||||||||||
Flood Fill | |||||||||||||||||
Floyds Algorithm | |||||||||||||||||
Greatest Common Divisor | |||||||||||||||||
Hamming Distance | |||||||||||||||||
Heap Sort | |||||||||||||||||
Heavy Light Decomposition | |||||||||||||||||
Histogram Equalization | |||||||||||||||||
Insertion Sort | |||||||||||||||||
Johnson Algorithm | |||||||||||||||||
Kadanes | |||||||||||||||||
Knapsack | |||||||||||||||||
Knuth Morris Prath | |||||||||||||||||
Kruskals Algorithm | |||||||||||||||||
Leaky Bucket | |||||||||||||||||
Linear Search | |||||||||||||||||
Longest Bitonic Subsequence | |||||||||||||||||
Longest Common Subsequence | |||||||||||||||||
Longest Increasing Subsequence | |||||||||||||||||
Longest Path | |||||||||||||||||
Longest Subset Zero Sum | |||||||||||||||||
Matrix Exponentiation | |||||||||||||||||
Merge Sort | |||||||||||||||||
Min Max ABPruning | |||||||||||||||||
Minimax | |||||||||||||||||
Pearson Hashing | |||||||||||||||||
Permutations | |||||||||||||||||
Persistent Data Structures | |||||||||||||||||
Postman Sort | |||||||||||||||||
Primality Tests | |||||||||||||||||
Prims | |||||||||||||||||
Prufer Code | |||||||||||||||||
Quick Select | |||||||||||||||||
Quick Sort | |||||||||||||||||
Rabin Karp | |||||||||||||||||
Radix Sort | |||||||||||||||||
Segment Tree | |||||||||||||||||
Segmented Sieve | |||||||||||||||||
Selection Sort | |||||||||||||||||
Sequence Alignment | |||||||||||||||||
Shell Sort | |||||||||||||||||
Sieveof Eratosthenes | |||||||||||||||||
String To Token | |||||||||||||||||
Strongly Connected Graph.cpp | |||||||||||||||||
Swap | |||||||||||||||||
Tarjans Offline LCA | |||||||||||||||||
Ternary Search | |||||||||||||||||
Topological Sort | |||||||||||||||||
Unary Coding | |||||||||||||||||
Union Find | |||||||||||||||||
VEGASAlgorithm |
List of Algorithms Folder structure should be like this [language]/[Algorithm name]/file For example:
- Go/BubbleSort/BubbleSort.go
- C++/QuickSort/QuickSort.cpp