Code Monkey home page Code Monkey logo

sortingalgorithms.cpp's Introduction

SortingAlgorithms.cpp

Overview

Codacy Badge BCH compliance

This repository contains Sorting Algorithms which are written in C++. This includes most of the run-time libraries and a custom header for each algorithm. The purpose of these algorithms is to to swap two numbers by using the mentioned algorithm. The algorithms being used are: bubble sort, which goes through an array, compares adjacent items, and swaps them if they are in the wrong order. Another algorithm , but is less efficient, is insertion sort. Numerous iterations are made, as the final sorted array is built one at a time. A third algorithm is merge sort, which cuts the array in half, sorts each half, and then will combine again at the end for a sorted array. Fourth is quick sort. Quick sort, similar to merge sort, divides the array, then recursively is called, and the result is a sorted array. Lastly, selection sort is an algorithm where the minimum value in an array is repeatedly found from an unsorted array, and that minimum value is moved to the start of the array.

Feel free to visit these links below to compare the different algorithms.

Algorithms:

Compilation

Of course you will need a cpp compiler to do the job, so you can install the MinGW to do it in Windows or any other you want.

TODO:

  • Add compilation steps for different OS's

sortingalgorithms.cpp's People

Contributors

aditya81070 avatar ajloria avatar bviecelli avatar codacy-badger avatar pujolsluis avatar sambhav2612 avatar samhitav avatar tarasyarema avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

sortingalgorithms.cpp's Issues

Put comments in every sorting code

Please help in improving the readability of the codes by putting comments at there appropriate places.

Please comment here so I can assign it to you on first come basis. Add yourself into CONTRIBUTORS.md under the following format:

- <Your name>[<(@Your GitHub username)>](<Your profile link>)

For example: 

- Sambhav Jain [(@sambhav2612)](https://github.com/sambhav2612)

Thanks for stopping by.

Improvise and remove extra code from all .cpp files

Please help in improving the codes by removing and improvising the existing code from there appropriate places.

Please comment here so I can assign it to you on first come basis. Add yourself into CONTRIBUTORS.md under the following format:

- <Your name>[<(@Your GitHub username)>](<Your profile link>)

For example: 

- Sambhav Jain [(@sambhav2612)](https://github.com/sambhav2612)

Thanks for stopping by.

Improve README.md

Please help in improving the readability of the repository by writing it's correct description inside README.md file.

Please comment here so I can assign it to you on first come basis. Add yourself into CONTRIBUTORS.md under the following format:

- <Your name>[<(@Your GitHub username)>](<Your profile link>)

For example: 

- Sambhav Jain [(@sambhav2612)](https://github.com/sambhav2612)

Thanks for stopping by.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.