C语言归并排序法实现二维数组[1列(数值),2列(下标)]按照第一列排序
标签:
it |
分类: 工作 |
[专业排序速度检测]
Output:
http://www.sorting-algorithms.com
打开网页后,点击左边的或则上边的按钮,就会看到排序速度效果
[C语言代码]
|
#include <stdlib.h>
#include
void Merge(int (*sourceArr)[2],int (*tempArr)[2], int startIndex, int midIndex, int endIndex)
{
} //内部使用递归 void MergeSort(int (*sourceArr)[2], int (*tempArr)[2], int startIndex, int endIndex)
{
} int main(int argc, char * argv[])
{
} |
Output:
(30 ,3) (40 ,5) (50 ,0) (60 ,7) (70 ,4) (80 ,6) |
[辅助工具]
在线C语言编译
http://www.52bcx.com/compile.htm
耗时情况如下

加载中…