Showing posts with label Quicksort. Show all posts
Showing posts with label Quicksort. Show all posts

Quick Sort Using C Programming Language

How to write a C Program Quick Sort Using C Programming Language ?

Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order. 


Quicksort is a divide-and-conquer sorting algorithm in which division is dynamically carried out (as opposed to static division in Merge sort).

The three steps of Quicksort are as follows:

Divide: Rearrange the elements and split the array into two subarrays and an element in between such that so that each element in the left subarray is less than or equal the middle element and each element in the right subarray is greater than the middle element. 

Conquer: Recursively sort the two subarrays.

Combine: None.

See More : Quicksort