排序以线性时间? [英] Sorting in linear time?

查看:185
本文介绍了排序以线性时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于输入设置个整数的范围内[0到n ^ 3-1],提供了一个线性时间排序算法。

Given an input set of n integers in the range [0..n^3-1], provide a linear time sorting algorithm.

这是我在周四的测试检讨,我不知道如何解决这个问题。

This is a review for my test on thursday, and I have no idea how to approach this problem.

推荐答案

另外一起来看看相关的各种过:鸽巢排序计数排序,还有的基数排序所提到的Pukku。

Also take a look at related sorts too: pigeonhole sort or counting sort, as well as radix sort as mentioned by Pukku.

这篇关于排序以线性时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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