These are the most basic and common sorting algorithms/methods which every programmer should know. (The python file name indicates the sorting method name)
- To run these program Python3 compiler needs to be installed and follow these steps:
- Open terminal and go to directory where these files are located.
- Type '$python3 filename'. (example: $python3 bubblesort.py, where 'bubblesort.py' is filename)
- Once the program is run, enter the numbers that are to be sorted(separated by space) and press Enter.
- Press ctrl+z to force stop the program.