Sorting distinct integer keys using in-place associative sort
Abstract
In-place associative integer sorting technique was proposed for integer lists which requires only constant amount of additional memory replacing bucket sort, distribution counting sort and address calculation sort family of algorithms. The technique was explained by the analogy with the three main stages in the formation and retrieval of memory in cognitive neuroscience which are (i) practicing, (ii) storing and (iii) retrieval. In this study, the technique is specialized with two variants one for read-only integer keys and the other for modifiable integers. Hence, a novel algorithm is obtained that does not require additional memory other than a constant amount and sorts faster than all no matter how large is the list provided that m = O (n logn) where m is the range and n is the number of keys (or integers).
- Publication:
-
arXiv e-prints
- Pub Date:
- September 2012
- DOI:
- 10.48550/arXiv.1209.1942
- arXiv:
- arXiv:1209.1942
- Bibcode:
- 2012arXiv1209.1942E
- Keywords:
-
- Computer Science - Data Structures and Algorithms;
- 68P05;
- 68P10;
- E.1
- E-Print:
- 20 pages. arXiv admin note: substantial text overlap with arXiv:1209.0572