Sorting Algorithm Introduction
What is sorting?
Sorting is a technique to arrange elements in ascending or descending order.
Why sorting is important in Computer Science?
Suppose you have a large amount of data and you want to find the minimum and maximum element. If the data is not sorted, it will be difficult to find these elements. Because they might be present at any position.
Hence if the data is sorted we can directly select the first and last element to get minimum and maximum values. If the data is sorted in ascending order.