Radix sort: LSD versus MSD versions

后端 未结 3 1081
失恋的感觉
失恋的感觉 2021-02-04 02:36

The book \"Introduction to Algorithms\" mentions about the LSD (Least Significant Digit) version of radix sort. However , as others have pointed out here in stackoverflow, a MSD

3条回答
  •  春和景丽
    2021-02-04 02:45

    LSD is faster than MSD when there is a fixed length. MSD is too slow for small files, and it need huge number of recursive calls on small files.

提交回复
热议问题