首先是主方法QUCIKSORT:(从小到大排列) function [A]=QUICKSORT(A,Low,high,mdat) set(,) if Low<high [A,w]=SPLITION2(A,Low,high,mdat); A=QUICKSORT(A,Low,w-,mdat); A=QUICKSORT(A,w+,high,mdat); end function [A,w]=SPLITION2(A,Low,high,mdat) i=Low; x=A(,Low); for j=Low+: