International Conference on ICT for Healthcare |
Foundation of Computer Science USA |
ICTHC2015 - Number 1 |
April 2016 |
Authors: Aishwarya Kaul |
4d9a31d7-fc5f-49d5-9098-4abe98b52b9a |
Aishwarya Kaul . Space Optimization of Counting Sort. International Conference on ICT for Healthcare. ICTHC2015, 1 (April 2016), 7-11.
Optimization of sorting algorithms is an ongoing research and delivers faster and less space consuming algorithms. The Counting sort algorithm is an integer sorting algorithm and is a very simple and effective way to sort numbers based on their key value. It uses three arrays for computation but in a large input set it can consume a significant amount of memory. This paper puts forward a method to reduce the amount of space required to perform the computation. It reduces the number of arrays or memory required for computation by using just two arrays instead of three, i. e. the input and the count array, removing the need of the third output array.