Be the first to rate this file! 148 downloads (last 30 days) File Size: 7.53 KB File ID: #24459

Next Combination/Permutation

by Matt Fig

 

17 Jun 2009

Code covered by BSD License  

Produces one comb/perm at a time. Both with/without repetition.

Download Now | Watch this File

File Information
Description

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.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
loopchoose

MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
Other Files license.txt,
nextchoose.m,
nextmultichoose.m,
nextperm.m,
nextstring.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
combinations Matt Fig 17 Jun 2009 11:45:17
permutations Matt Fig 17 Jun 2009 11:45:17
combinatorics Matt Fig 17 Jun 2009 11:45:17
choose Matt Fig 17 Jun 2009 11:45:17
multichoose Matt Fig 17 Jun 2009 11:45:17
perms Matt Fig 17 Jun 2009 11:45:17
nchoosek Matt Fig 17 Jun 2009 11:45:17
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com