Skip to content

Ivoz/C-Sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Sorting Demonstration

This is a simple project, designed to demonstrate all of the main comparison sorts.

If you'd like to implement another type of sort, please send me a pull!

These are supposed to be academically instructive and as easy as possible to understand, so unneccesarily complex optimisations might be out.

Please take a look at how the other sorts work in order to code your own.

If you'd like to improve the main application, well that is fine too!

Regards, Matt.

Example Usage

$ time ./sorts -cm -r 10000000 -a merge
Comparisons: 224570926
Moves:       230898433

real    0m4.117s
user    0m3.973s
sys     0m0.137s

License

Copyright 2012 Matthew Iversen.

CC bc-nc-sa 3.0

C Comparison Sorts by Matthew Iversen is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Please see the LICENSE file for the full license of this code.

About

Academic implementations of comparison sorts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages