Data Structures Lab Manual / Data Structures Quick Sort C Program

Program Name: Write a C Program for Quick Sort in Data Structures
Theory
Quick / Partition Exchange Sort developed by a British computer scientist Tony 
Hoare  and splits of an array (partition) into smaller ones and swapping 
(exchange) based on the comparison with 'pivot' element selected. 
Program Code



Input:
Enter a of Elements: 5
Enter Array Elements: 5 7 2 9 1
Output:
Sorted Elements Order:  1	 2	 5	 7	 9


Home     Back