This repo contains all existing types of Algorithms implemented in C++
![FOSSA Status](https://camo.githubusercontent.com/ad2bc46951e00cd2619f0cc6888776a43bf720a743df3ea29f0be11f895643c0/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246426875706573682d56253246416c676f726974686d732e7376673f747970653d736869656c64)
Sorting Technique |
Complexity(Worst Case) |
Link |
Method |
Stable |
Class |
Selection |
O(n^2) |
Selection Sort |
Selection |
No |
Comparison Sort |
Insertion |
O(n^2) |
Insertion Sort |
Insertion |
Yes |
Comparison Sort |
Counting |
O(n + k) |
Counting Sort |
- |
Yes |
Non-Comparison Sort |
Quick |
O(n log n) |
Quick Sort |
Partitioning |
No |
Comparison Sort |
Bubble |
O(n^2) |
Bubble Sort |
Exchanging |
Yes |
Comparison |
Merge Sort |
O(n log n) |
Merge Sort |
Merging |
Yes |
- |
Technique |
Complexity(Worst Case) |
Link |
Knuth-Morris-Pratt |
O(n+m) |
KMP |
Technique |
Complexity(Worst Case) |
Link |
Fibonacci |
O(n) |
fibonacci |
MIT License
![FOSSA Status](https://camo.githubusercontent.com/5af8a6ac91e06871f3223394b998cc9df5a860d48820f5d91fe263633330b799/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246426875706573682d56253246416c676f726974686d732e7376673f747970653d6c61726765)
See CONTRIBUTING file for contributing.
All the Algorithms have been complied using GCC 8.1.0 (MinGW) on a Winodws Machine & GCC 8.2.0 on Ubuntu (Mate) Machine.