Created
November 19, 2014 08:14
-
-
Save salzig/93a46f353566fd3dae6d to your computer and use it in GitHub Desktop.
Was fehlt.....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% aufruf um exemplarisch über "zahlen.dat" zu laufen | |
runSelectionSortExample() -> | |
StartTime = time(), | |
selectionSortOverFileLines("zahlen.dat"). | |
%% Öffne Datei, und iteriere über die Tuple | |
selectionSortOverFileLines(Filename) | |
Tuples = file:consult(FileName), | |
selectionSortOverTuples(Tuples). | |
%% Tuple Liste enthält nur noch ein Element | |
selectionSortOverTuples([Tuple]) -> | |
SelectionS(Tuple). | |
%% Nimm Kopf aus der Liste, und rufe rekursiv auf. | |
selectionSortOverTuples([Tuple|Rest]) -> | |
SelectionS(Tuple), | |
selectionSortOverTuples(Rest). | |
SelectionS(Array) -> … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment