C++桶排序
C++桶排序改变NUMMAX是数值的数量改变BUCKETMAX是桶的数量其他的都不用更改便可以测试桶排序在数据存储中的速度#include<iostream>#include<cmath>#include<ctime>using namespace std;#define NUMMAX 100000#define BUCKETMAX 10typedef int Type;//产生随机数void test(Type* arrNum, int arr
原创
2021-11-29 09:36:50 ·
535 阅读 ·
0 评论