06.05.2013 Views

presentación-PDF

presentación-PDF

presentación-PDF

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Código QuickSort<br />

void quickSort (int [] A, int i, int j)<br />

{<br />

int indicePivote = buscaPivote(i, j);<br />

if (indicePivote != -1)<br />

{<br />

int pivote = A[indicePivote];<br />

intercambiar(indicePivote,j);<br />

int k = particion(i,j,pivote);<br />

quickSort(A, i, k-1);<br />

quickSort(A, k,j);<br />

}<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!