Professional Documents
Culture Documents
Index en
Index en
English - Spanish
The library is written in ANSI C and is released under the GPL license. You can
download the last version of the program from the page of the project Disposition at
SourceForge.
$ disp
`disp' prints permutations and combinations of characters.
-p Permutations (nPk)
-pr Permutations with repetition (nPRk)
-c Combinations (nCk)
-cr Combinations with repetition (nCRk)
-prr Permutations with "restricted" repetition
-crr Combinations with "restricted" repetition
CHARLIST string with the n characters used in the dispositions
SIZE length k of every disposition, equal to n by default
-v output in reverse order
-r print only random dispositions
The following table shows different sequences generated with the program disp:
$ disp -pr 01 4
$ disp -v -cr ABC 4
0000
CCCC
0001
BCCC
0010 $ disp -c aeiou 3
BBCC
0011 aei
BBBC
$ disp -p abc 0100 aeo
BBBB
abc 0101 aeu
ACCC
acb 0110 aio
ABCC
bac 0111 aiu
ABBC
bca 1000 aou
bca 1000 aou
ABBB
cab 1001 eio
AACC
cba 1010 eiu
AABC
1011 eou
AABB
1100 iou
AAAC
1101
AAAB
1110
AAAA
1111
You can find more information inside the package. For any suggestions, bugs or
ideas about this software, please mail me to: jasampler at yahoo dot es