哪种选址算法合适 [英] which sotring algorithm is suitable

查看:134
本文介绍了哪种选址算法合适的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对一个千位数字进行排序,哪种排序算法最适合对这么多个数字进行排序?请帮助...

hi guys i am trying to sort one hundread thousand numbers, which sorting algorithm is apt for sorting this many numbers? pls help...

推荐答案

其中任何一个.您实时排序吗?基数排序可能是性能最高的(如果您要对整数排序).当然,涉及散列的东西是理想的.
Any of them. You sorting in real time? Perhaps a radix sort would be the most performant (if you are sorting integers). Certainly something that involves hashing would be ideal.


这篇关于哪种选址算法合适的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆