home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
INFO
/
MISC
/
IFP05.ZIP
/
FPDEMO.EXE
/
SLOWSORT
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-02-09
|
244 b
|
13 lines
(*
* SlowSort
*
* Sort a sequence the hard way, i.e. take all permutations
* and pick one for which all elements are in order.
*)
DEF SlowSort AS
Permute |
FILTER
[tl,tlr]|trans | EACH >= END | all
END | 1;