Algorithm I
This is the first post in Algorithms.From this post I am looking forward to write about sorting algorithms. Sorting Algorithms What are Sorting Algorithms A sorting algorithm is an algorithm that puts elements of a list in a certain order. The most-used orders are numerical order and lexicographical order. Efficient sorting is important for optimizing the use of other algorithms which require input data to be in sorted lists. Some main sorting algorithms are : Insertion Sort. Selection Sort. Bubble Sort Merge Sort. Counting Sort. Quick Sort. Radix Sort. Let's see about the first sorting with more details. Insertion Sort Insertion sort is a simple sorting algorithm that is relatively efficient for small lists and mostly sorted lists, and often is used as part of more sophisticated algorithms. It works by taking elements from the list one by one and inserting them in their correct position into a new sorted list. In arrays, the new list and the remaini...