30.01.2014 Aufrufe

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

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Shell-Sort – 5<br />

public static void shellSort(int[] feld) {<br />

int n = feld.length; // Länge des Feldes<br />

int h = 1;<br />

// Schrittweite<br />

int j, temp;<br />

// für Elementetausch<br />

do { // Start-Schrittweite ermitteln<br />

h = 3 * h + 1;<br />

} while (h < n);<br />

do {<br />

// neue Schrittweite berechnen<br />

// beim ersten Mal: einen Schritt zurück<br />

h /= 3;<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 />

95

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!