Message407041
Can you give example use-cases for sorting a bytes or bytearray object? I see value in the intermediate object - the frequency table, but the reconstructed sorted bytes object just seems like an inefficient representation of the frequency table, and I'm not sure how it would be useful.
As the wikipedia page for counting sort says, the real value is in sorting items by keys that are small integers, and the special case where the item is identical to the key isn't all that useful:
> In some descriptions of counting sort, the input to be sorted is assumed to be more simply a sequence of integers itself, but this simplification does not accommodate many applications of counting sort. |
|
Date |
User |
Action |
Args |
2021-11-26 11:03:10 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, brett.cannon, rhettinger, vstinner, Mark.Shannon, serhiy.storchaka, yselivanov, rhpvorderman |
2021-11-26 11:03:10 | mark.dickinson | set | messageid: <1637924590.26.0.286349849421.issue45902@roundup.psfhosted.org> |
2021-11-26 11:03:10 | mark.dickinson | link | issue45902 messages |
2021-11-26 11:03:10 | mark.dickinson | create | |
|