A Generic Quicksort Implementation in C

April 10, 2011 — Leave a comment

This is one of the posts that I unluckily lost on 2011-04-09 and then recovered. The information may be very old. Or not.

As assignment for Data Structures and Algorithms course, we had to work with a modified version of the quicksort algorithm. It came obvious that for modifying a qsort you need to implement it

It is difficult to find a clear quicksort algorithm implemented, so I wrote it.

Here is the generic C implementation of theĀ Quicksort Algorithm, which sorts an array in place, following theĀ Divide And Conquer design.

As you see, there is nothing optimized in this implementation. It just looks elegant and easy to be understood.
If you would like to have a more optimized version of this algorithm, take a look at this one.

Share Button

dgraziotin

Posts Google+

Researcher wannabe in Software Engineering and opensource/opendata passionateMore....

No Comments

Be the first to start the conversation.

Leave a Reply

*

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">