Sorting Technique

In this blog I am going to discuss about sorting, what is sorting and how many types of sorting techniques we have. Sorting is technique to arrange the elements in an order either ascending or descending.

The most-used orders are numerical order and lexicographical order. Efficient sorting is important for optimizing the use of other algorithms (such as search and merge algorithms) which require input data to be in sorted lists; it is also often useful for canonicalizing data and for producing human-readable output. More formally, the output must satisfy two conditions:
1. The output is in non decreasing order (each element is no smaller than the previous element according to the desired total order);
2. The output is a permutation (reordering) of the input.
We can divide sorting two types
1. Internal sorting: If the number of objects / elements is small enough to fits into the main memory then it is called internal sorting.
2. External Sorting: If the number of objects so large that some of them reside on external storage during the sort, it is called External sorting.
Types of sort’s:

See the Merge Sort here

See the Bubble Sort here

See the Insertion sort here

See the Selection Sort here

See the Heap sort here

See the Bucket Sort here

About Santosh Kumar Gadagamma

I'm Santosh Gadagamma, an Experienced Software Engineer passionate about sharing knowledge in technologies like Java, C/C++, DBMS/RDBMS, Bootstrap, Big Data, Javascript, Android, Spring, Hibernate, Struts, and all levels of software design, development, deployment, and maintenance. I believe computers are essential for the world's functioning, and I'm committed to helping others learn the skills they need to succeed in tech. My website is a valuable learning tool to help you reach greater heights in your education and career, and I believe that education has no end points.

Check Also

Bucket Sort

Bucket sort is a sorting algorithm also knows as bin sort, it works with distributing …