Skip to content

This is a repository for testing out various things related to sorting, how long sorting can take, and which types of arrays are easiest for certain types of sorting algorithms.

License

Notifications You must be signed in to change notification settings

dja322/Sorting-Implementations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting-Practice

This is a repository for testing out various things related to sorting. How long sorting can take, and which types of arrays are easiest for certain types of sorting algorithms.

It first runs a check on if the sorting algorithms are functional and sorting correctly. Then it outputs the times it takes for the sorts to run and a percentage on how "unsorted" they are the higher the number the more unsorted.

Outputs average times to sort and sortedness of array for each sorting method. Explanation for each sorting method I made is in the .c file for that algorithm

How to use C sorting algorithms

Run make -mf algorithms_mf then run sort.exe

How to run python sorting algorithms

However you run python files

File authors

munit testing files from: https://github.com/nemequ/munit/

Quicksort and mergersort implementations are sourced from GeeksforGeeks https://www.geeksforgeeks.org/dsa/quick-sort-algorithm/ https://www.geeksforgeeks.org/dsa/merge-sort/

About

This is a repository for testing out various things related to sorting, how long sorting can take, and which types of arrays are easiest for certain types of sorting algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages