QuickSort follows the divide and conquer algorithm technique. It picks an element as a pivot and then it splits the given array around the picked pivot. element and then it is sorted. Using C++.
Definition:
QuickSort is a Divide and Conquer algorithm. It picks an element as a pivot and then it splits the given array around the picked pivot. element and then it is sorted.
Algorithm:
For Example, if you give an array of size 4, elements are 9,2,8,0
Sorted Array is 0,2,8,9
Submitted by Srivenurajulu G (Srivenurajulu)
Download packets of source code on Coders Packet
Comments