| |    | 85019 packages online | 
 | 
|  | 
| 
 | 
| misc/math/permutation.lha |  |  | | No screenshot available | 
 |  | 
 This program generates all permutations of the elements of an array.
 The example works with an array of characters, but can be changed for
 any other element types.
 Use the executable in a shell window with this syntax:
 permutation <text>
 Example:
 1.Ram Disk:>permutation abc
 abc
 acb
 bac
 bca
 cab
 cba
 The code is a port of a Pascal program I have written in 1988.
 The permutations are generated in a recursive function using a mask
 for filtering the remainig elements.
 The sort algorithm is simple and can be replaced by the library
 function qsort or can be removed.
 Ralf Gruner, Großschönau, Germany                    27 August 1999
 |  | 
 Contents of misc/math/permutation.lha
  PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4066    6024  67.5% -lh5- f576 Aug 26  1999 Permutation/permutation
[generic]                  475    1021  46.5% -lh5- 9d28 Aug 27  1999 Permutation/permutation.c
[generic]                  280     488  57.4% -lh5- 6605 Aug 27  1999 Permutation/permutation.c.info
[generic]                  394     835  47.2% -lh5- 0531 Aug 27  1999 Permutation/permutation.info
[generic]                  459     872  52.6% -lh5- 5627 Aug 27  1999 Permutation/permutation.readme
[generic]                  349    3304  10.6% -lh5- 4eea Aug 27  1999 Permutation/permutation.readme.info
[generic]                  275     628  43.8% -lh5- 9331 Aug 27  1999 Permutation.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         7 files    6298   13172  47.8%            Aug 28  1999
 | 
 |  | 
|  | 
| Page generated in 0.02 seconds | 
| Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet  aminet net> |