79659163

Date: 2025-06-09 16:05:36
Score: 1.5
Natty:
Report link

What's the range of possible values of these integers? If it's a relatively narrow range, a variation of Radix Sort (I call it Shawn Sort) has close to O(n) speed!

Say you're sorting millions of grades, which range from 1-100.

Sorting a record (database table record, for example), works the same way, but you also store the identities or record numbers in the array, in which each element (which is a tuple) also contains a list of identities / record numbers.

Shawn Sort beats every other sort algorithm decisively, for integers, if the possible values is manageable relative to the size of the dataset.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What's the
  • Low reputation (0.5):
Posted by: bitshftr