int partition(Sqlist &L
l
pivotkey=L
while(low<high){
while(low<high&&L
L
While(low<high&&L
L
}
l
retrun low;
}//Partition
void Qsort(SQList &L
//對順序表L中的子序列L
if(low<high){
pivotloc=partition(L
Qsort(L
Qsort(L
}
}//Qsort
void QuickSort(Sqlist &l){//對順序表L作快速排序
Qsort(L
}//QuickSort
返回《數據結構》考研復習精編
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23819.html