算法总结(进行中)

来源:互联网 发布:剑雨江湖10进阶数据 编辑:程序博客网 时间:2024/06/10 14:04

1.快速排序:

     /*int i = low;

int j = high;
int temp = sortData[i];
if (low < high) {
while (i < j) {
while ((sortData[j] >= temp) && (i < j)) {
j--;
}
sortData[i] = sortData[j];
while ((sortData[i] <= temp) && (i < j)) {
i++;
}
sortData[j] = sortData[i];
}
sortData[i] = temp;
quiksort(sortData, low, i - 1);
quiksort(sortData, j + 1, high);
}*/
原创粉丝点击