A simple sorting technique that scans the sorted list, starting at the beginning, for the correct insertion point for each of the items from the unsorted list… Read more »
Program
C Program for quick SORT
#include <stdio.h>
void quickSort( int[], int, int);
        int partition( int[], int, int);
      
void main() 
        {
        int a[] = { 7, 12, 1, -2, 0, 15, 4, 11, 9};
 int i;
        printf("\n\nUnsorted array is:  ");
        for(i = 0; i < 9; ++i)
        printf(" %d ", a[i]);
quickSort( a, 0, 8);
 printf("\n\nSorted array is:  ");
        for(i = 0; i < 9; ++i)
        printf(" %d ", a[i]);
}
void quickSort( int a[], int l, int r)
        {
        int j;
 if( l < r ) 
        {
        // divide and conquer
        j = partition( a, l, r);
        quickSort( a, l, j-1);
        quickSort( a, j+1, r);
        }
  
        }
int partition( int a[], int l, int r) {
        int pivot, i, j, t;
        pivot = a[l];
        i = l; j = r+1;
  
        while( 1)
        {
        do ++i; while( a[i] <= pivot && i <= r );
        do --j; while( a[j] > pivot );
        if( i >= j ) break;
        t = a[i]; a[i] = a[j]; a[j] = t;
        }
        t = a[l]; a[l] = a[j]; a[j] = t;
        return j;
        }
        }
Sorting by MS.K.Abirami
- 
	BUBBLE SORTBubble sort is a sorting algorithm that works by repeatedly stepping through lists that need to be sorted, comparing each pair of adjacent items and swapping them ...Read more » 
- 
	INSERTION SORTSELECTION SORTIt starts by comparing the entire list for the lowest item and moves it to the #1 position. It then compares the rest of the list for the next-lowest item....Read more » QUICK SORTA sorting technique that sequences a list by continuously dividing the list into two parts and moving the lower items to one side and the higher items to the other. … Read more » BUBBLE SORTThe number of comparison between elements and the number of exchange between elements determine the efficiency of Bubble Sort algorithm.Read more » Insertion SORTInsertion sort is also a time taking technique as its complexity is O(n2)Read more » selection SORTThe number of comparison between elements and the number of exchange between elements determine the efficiency of Bubble Sort algorithm.Read more » quick SORTThe efficeieny of the quicksort depends on the pivot element. However the pivot element can also be choosen at random order or from the last element of the array