Sorting


Prev Tutorial Next Tutorial

Sorting

Sorting is the basic operation in computer science. Sorting is the process of arranging data in some given sequence or order (in increasing or decreasing order).

For example you have an array which contain 10 elements as follow;
10, 3 ,6 12, 4, 17, 5, 9

After shorting value must be;
3, 4, 5, 6, 9, 10, 12, 17

Above value sort by apply any sorting technique. C language have following technique to sort values;

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Quick Sort
  • Merge Sort
  • Heap Sort
  • Shell Sort

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements