International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 45 - Number 1 |
Year of Publication: 2012 |
Authors: Nitin Arora, Suresh Kumar, Vivek Kumar Tamta |
10.5120/6746-8940 |
Nitin Arora, Suresh Kumar, Vivek Kumar Tamta . A Novel Sorting Algorithm and Comparison with Bubble sort and Insertion sort. International Journal of Computer Applications. 45, 1 ( May 2012), 31-32. DOI=10.5120/6746-8940
Sort is an algorithm that arranges all elements of an array, orderly. Sorting Technique is frequently used in a large variety of important applications to arrange the data in ascending or descending order. Several Sorting Algorithms of different time and space complexity are exist and used. This paper provides a novel sorting algorithm Counting Position sort which is based on counting the position of each element in array. We also compare Counting Position algorithm with Bubble sort and Selection sort. We have used the MATLAB for implementation and Analysis of CPU time taken for all the three sorting algorithms used. We have checked the algorithms with random input sequence of length 10, 100, 1000, 10000, 50000. Result shows that for the small length of input sequence the performance all the three techniques is all most same, but for the large input sequence Selection sort is faster than Bubble sort and Counting Position sort.