Translation Studies for Information Technologies V3- 02.03.11
Translation Studies for Information Technologies V3- 02.03.11
Translation Studies for Information Technologies V3- 02.03.11
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Quick-Sort – 3<br />
feld =<br />
unsortiertes Feld der Länge n<br />
links =<br />
linker Rand des (Teil-)Feldes<br />
rechts =<br />
rechter Rand des (Teil-)Feldes<br />
Q u ic k -S o rt<br />
re c h ts > lin k s ?<br />
ja<br />
n e in<br />
p = te ile ( fe ld , lin k s , re c h ts )<br />
q u ic k S o rt( fe ld , lin k s , p - 1 ) tu e n ic h ts<br />
q u ic k S o rt( fe ld , p + 1 , re c h ts )<br />
public static void quickSort(int[] feld, int links, int rechts) {<br />
if (rechts > links) {<br />
int p = quickSortTeile(feld, links, rechts);<br />
quickSort(feld, links, p-1);<br />
quickSort(feld, p+1, rechts);<br />
}<br />
}<br />
INF2 – <strong>Translation</strong> <strong>Studies</strong> <strong>for</strong> In<strong>for</strong>mation <strong>Technologies</strong> <strong>V3</strong>- <strong>02.03.11</strong><br />
101