Collection of algorithms in multiple programming languages.
Switch branches/tags
Nothing to show
Clone or download
Thuva4 Add bubble sort in Scala
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Latest commit 20cc066 Oct 18, 2018
Permalink
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Aug 27, 2018
AStar Search refactor files Aug 28, 2018
Bellman Ford refactor files Aug 28, 2018
BellmanFord Merge pull request #582 from shazly333/master Oct 8, 2018
BestFirstSearch refactor files Aug 28, 2018
BinaryGCD changed gcd removed useless parameter and added unittest (#554) May 17, 2018
BinarySearch change in calculating mid (#277) Sep 29, 2018
Bitap Algorithm Added Bitap algo Python code Oct 17, 2017
BitonicSort Add bitonic sort in Java (#581) Oct 5, 2018
BloomFilter/Python Extra Jun 28, 2018
Borwein's Algorithm fixed error. added header cstdio Jun 9, 2018
Breadth First Search refactor files Aug 28, 2018
Bubble Sort Add bubble sort in Scala Oct 18, 2018
Cocktail Sort/Cpp refactor files Aug 28, 2018
Conjugate Gradient Python: added conjugate gradient method. (#506) Oct 31, 2017
Connected Component Labeling/C refactor files Aug 28, 2018
Counting Inversions refactor files Aug 28, 2018
Counting Sort Fernanda Ochoa CountingSort (#571) Oct 3, 2018
Cycle Sort refactor files Aug 28, 2018
Depth First Search refactor files Aug 28, 2018
Dijkstra's Merge pull request #583 from shazly333/master Oct 12, 2018
Doomsday Python 3 port Aug 19, 2018
Dynamic Programming/Coin Change/C++ Add Dynamic Programming coin change problem C++ Oct 17, 2018
Edit distance refactor files Aug 28, 2018
Edmonds Karp/Java refactor files Aug 28, 2018
Elevator Algorithm/Java refactor files Aug 28, 2018
Extended Euclidean Algorithm/C refactor files Aug 28, 2018
Fast Fourier Transform refactor files Aug 28, 2018
Fenwick Tree/C++ Add Fenwick tree C++ Oct 17, 2018
Fibonacci Merge pull request #458 from huzaifaiftikhar/issue#457 Aug 27, 2018
Fisher Yates Shuffle refactor files Aug 28, 2018
FloodFill flood fill c++ Oct 30, 2017
Floyds Algorithm refactor files Aug 28, 2018
Greatest Common Divisor Merge branch 'master' of github.com:Thuva4/Algorithms Oct 18, 2018
Hamming Distance refactor files Aug 28, 2018
Heap Sort refactor files Aug 28, 2018
Heavy Light Decomposition/Cpp refactor files Aug 28, 2018
Histogram Equalization/Java refactor files Aug 28, 2018
Insertion Sort Fix compilation error in insertion sort in java (#576) Oct 5, 2018
InsertionSort/Python Create insertion_sort.py (#295) Sep 29, 2018
Inverse Fast Fourier Transform/C++ refactor files Aug 28, 2018
Johnson Algorithm Added pyhton implementation of Johnson's Algorithm in seperate directory Oct 17, 2017
Kadane's Added Kadane's in C #85 (#279) Sep 29, 2018
Knuth Morris Prath Added Java implemenattion for KMP Algorithm in seperate Directory Oct 17, 2017
Kruskals algorithm/java added Kruskal's algorithm Sep 4, 2018
Leaky-Bucket refactor files Aug 28, 2018
Linear Search Add linear search algorithm in Kotlin (#578) Oct 5, 2018
Longest Bitonic Subsequence/C++ Add Longest bitonic subsequence Oct 17, 2018
Longest Common Subsequence refactor files Aug 28, 2018
Longest Increasing Subsequence refactor files Aug 28, 2018
Longest Path refactor files Aug 28, 2018
Merge Sort refactor files Aug 28, 2018
Min-Max ABPruning/Java refactor files Aug 28, 2018
Modified Binary Search/c++ refactor files Aug 28, 2018
Pearson Hashing/Java refactor files Aug 28, 2018
Postman Sort/C Update README.md and manage file to language folder (#440) Oct 28, 2017
PrimalityTests/C++ Added Primality Tests in c++ (#282) Sep 29, 2018
Prufer Code/CPlusPlus refactor files Aug 28, 2018
Quick Select refactor files Aug 28, 2018
Quick Sort refactor files Aug 28, 2018
Rabin-Karp Python: Added Rabin–Karp algorithm. (#509) Oct 31, 2017
Radix Sort refactor files Aug 28, 2018
RadixSort/C Radix sort for C (#300) Sep 29, 2018
Segment Tree refactor files Aug 28, 2018
Segmented-Sieve implementation in python Oct 15, 2017
Selection Sort Add bubble sort in Scala Oct 18, 2018
Sequence Alignment refactor files Aug 28, 2018
Shell Sort refactor files Aug 28, 2018
Sieve of Eratosthenes refactor files Aug 28, 2018
String to token/c++ refactor files Aug 28, 2018
Tarjan's Offline LCA/c++ refactor files Aug 28, 2018
Ternary Search refactor files Aug 28, 2018
TernarySearch/Javascript Update ternary_search.js Oct 15, 2018
Topological Sort refactor files Aug 28, 2018
Unary Coding refactor files Aug 28, 2018
Union Find Added union find algorithm in C . Oct 24, 2017
VEGAS Algorithm/C++ refactor files Aug 28, 2018
Xor Swap Add swap in scala Oct 18, 2018
knapsack/Java add knapsack Aug 28, 2018
swap Add swap in scala Oct 18, 2018
.gitignore GCD in scala Oct 18, 2018
Algorithms.md Create Algorithms.md Nov 30, 2017
CONTRIBUTING.md Merge branch 'master' into ternary_search_javascript Oct 15, 2018
LICENSE Create LICENSE Oct 6, 2017
README-CN.md update readme-cn (#546) May 15, 2018
README.md Merge branch 'master' into ternary_search_javascript Oct 15, 2018

README.md

Algorithms Example

This repository contains examples of various algorithms which were written on different programming languages.

Implemented algorithms with languages:

Language Java Python Rust C C++ JavaScript Go C# Ruby Swift Racket Perl Crystal Kotlin Haskell
A*Search 👍 👍
BellmanFord 👍 👍
BestFirstSearch 👍 👍 👍
BinaryGCD 👍
BinarySearch 👍 👍 👍 👍 👍 👍 👍 👍 👍
Binary Search Modified 👍
Bitap Algorithm 👍 👍
Bitonic Sort 👍 👍
BreadthFirstSearch 👍 👍 👍
Borwein's Algorithm 👍 👍 👍
BubbleSort 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
Conjugate Gradient 👍
CountingSort 👍 👍 👍 👍
CycleSort 👍 👍 👍
DepthFirstSearch 👍 👍 👍 👍
Dijkstra's 👍 👍 👍 👍
Dynamic programming 👍
Doomsday 👍 👍 👍 👍 👍 👍 👍
EditDistance 👍 👍
Edmonds-Karp 👍
ElevatorAlgorithm 👍
Fast Fourier Transform 👍 👍 👍 👍 👍
Fibonacci 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
FisherYatesShuffle 👍 👍 👍 👍 👍
FloodFill Algorithm 👍 👍
Floyd'sAlgorithm 👍 👍 👍
Greatest Common Divisor 👍 👍 👍 👍 👍 👍
Hamming Distance 👍 👍 👍 👍 👍 👍
HeapSort 👍 👍 👍 👍 👍 👍 👍
Histogram equalization 👍
InsertionSort 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
Inverse Fast Fourier Transform 👍
Johnson algorithm 👍 👍 👍
Kadane's algorithm 👍 👍 👍 👍 👍 👍
Knuth Morris Prath Algorithm 👍 👍 👍
LinearSearch 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
Longest-Common-Subsequence 👍 👍 👍 👍 👍
Longest-Increasing-Subsequence 👍 👍 👍
LongestPath 👍
MergeSort 👍 👍 👍 👍 👍 👍 👍 👍
MiniMax with alpha–beta pruning 👍
Pearson Hashing 👍
Postman Sort 👍
Quick Sort 👍 👍 👍 👍 👍 👍 👍 👍 👍
Quick Select 👍 👍 👍 👍
Uniform-cost search 👍 👍 👍
RadixSort 👍 👍 👍
RobinCarp 👍
SelectionSort 👍 👍 👍 👍 👍 👍 👍 👍 👍
ShellSort 👍 👍 👍
Sieve of Eratosthenes 👍 👍 👍 👍 👍
UnaryCoding 👍 👍 👍
VEGAS Algorithm 👍
TernarySearch 👍 👍 👍 👍 👍
Topological Sort 👍
Segmented Sieve 👍 👍 👍
Union Find 👍 👍 👍
Xor swap 👍 👍 👍 👍
Connected-component labeling 👍
Extended Euclidean algorithm 👍

List of Algorithms

Folder structure should be like this [Algorithm name]/[language]/file

For example:

  • Bubble Sort/Go/BubbleSort.go
  • Quick Sort/C++/QuickSort.cpp

License

Apache License 2.0