Next Combination/Permutation
The folder contains 4 files:
NEXTCHOOSE
NEXTMULTICHOOSE
NEXTPERM
NEXTSTRING
which correspond to the combinatorical problems:
Combinations without repetition.
Combinations with repetition.
Permutations without repetition.
Permutations with repetition.
Each of these will produce successive outputs of the combs/perms of K elements taken from the set 1:N.
See the screenshot for an example.
Please read the help before using.
Please email me if bugs are found, or improvements are found.
See also: COMBINATOR (file 24325)
Thanks.
Zitieren als
Matt Fig (2024). Next Combination/Permutation (https://www.mathworks.com/matlabcentral/fileexchange/24459-next-combination-permutation), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math >
Tags
Quellenangaben
Inspiriert: Fast batch generation of permutations
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |