资 源 简 介
此程序改自算法课的一个作业,用四种不同的算法,对随机生成的n个数排序(n取值500至5000),并重复n遍,最后统计平均比较次数。本在xp下用vc6编写,现在修改为Ubuntu下gcc编译。
sortArchieve.c内为各个排序算法的实现-Since the algorithm for this process to a class operation, with four different algorithms, to randomly generated n the number of sort (n values 500-5000), and repeat n times, and finally compare the average number of statistics. This in vc6 prepared using xp and now modified for the gcc compiler under Ubuntu. sortArchieve.c sorting algorithm for the realization of all