https://github.com/devarshi16/sorting_comparison
Use this code to compare sorting algorithms and plot the graphs for a visual output.
https://github.com/devarshi16/sorting_comparison
compare-sorting-algorithms graphs matplotlib python
Last synced: 8 months ago
JSON representation
Use this code to compare sorting algorithms and plot the graphs for a visual output.
- Host: GitHub
- URL: https://github.com/devarshi16/sorting_comparison
- Owner: devarshi16
- Created: 2018-07-11T10:33:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T04:20:10.000Z (about 4 years ago)
- Last Synced: 2025-03-28T15:50:27.552Z (over 1 year ago)
- Topics: compare-sorting-algorithms, graphs, matplotlib, python
- Language: Python
- Size: 669 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sorting Comparison
Compare the actual runtime of common sorting algorithms on your system for various input sizes.
**NOTE:** For accurate results, close applications and background overheads on your system.
Install the required libraries
```
$ pip install -r requirements.txt
```
Generate a file containing random numbers which will be sorted.
```
$ python random_generator.py
```
This will create a file `randoms.txt` containing `1000` lines of `400` unsorted numbers separated by commas.
```
$ python sort_comp.py
```
**NOTE:** During code execution do not start or run other applications.
## Result

For more inference, check out,
https://wp.me/pa3wrJ-a