Re:Is this the simplest (and most surprising) sorting algori...
by cjohansson on Wednesday October 06, 2021 @01:04AM
(#28769399)
Is it really? Building the hash can be made in linear time but iterating the values in order, especially when there might be gaps in the interval? Could be messy
Re:Is this the simplest (and most surprising) sorting algori...
by daniel-cussen on Wednesday October 06, 2021 @10:28PM
(#28781116)
The overhead of hashing in a hash table makes it worse than sorting algorithms without hashing.
Much faster to find upper and lower bounds and essentially construct a hash table than to manually sort a whole list of non-trivial length.