Ivoz / C-Sorting

Academic implementations of comparison sorts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:C 100.0%