文件名称:paixu1
- 所属分类:
- 其他小程序
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- laixi******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
已知记录序列a[1..n] 中的关键字各不相同,
可按如下所述实现计数排序:另设数组c[1..n],对每
个记录a[i], 统计序列中关键字比它小的记录个数存
于c[i], 则c[i]=0的记录必为关键字最小的记录,然
后依c[i]值的大小对a中记录进行重新排列,试编写算
法实现上述排序方法。-Known record of sequence a [1 .. n] of the keywords are different, as described below may realize counting sort: separate array c [1 .. n], for each record of a [i], statistical sequence keyword than its small number of records stored in c [i], then c [i] = 0 records will record the smallest for a keyword, then c [i] value of the size of a record to re-order and try to realize the above algorithm to sort the preparation method.
可按如下所述实现计数排序:另设数组c[1..n],对每
个记录a[i], 统计序列中关键字比它小的记录个数存
于c[i], 则c[i]=0的记录必为关键字最小的记录,然
后依c[i]值的大小对a中记录进行重新排列,试编写算
法实现上述排序方法。-Known record of sequence a [1 .. n] of the keywords are different, as described below may realize counting sort: separate array c [1 .. n], for each record of a [i], statistical sequence keyword than its small number of records stored in c [i], then c [i] = 0 records will record the smallest for a keyword, then c [i] value of the size of a record to re-order and try to realize the above algorithm to sort the preparation method.
相关搜索: 计数排序
(系统自动生成,下载前可以参看下载内容)
下载文件列表
paixu1.txt