Fast algorithm implementation to sort very small list

后端 未结 6 1720
予麋鹿
予麋鹿 2020-11-28 08:42

This is the problem I ran into long time ago. I thought I may ask your for your ideas. assume I have very small list of numbers (integers), 4 or 8 elements, that need to be

6条回答
  •  醉梦人生
    2020-11-28 09:06

    Insertion sort is considered best for small arrays. See Fast stable sort for small arrays (under 32 or 64 elements)

提交回复
热议问题