A permutation is where you take a set of available choices (numbers, words,
cards, etc) and you put them together in every way possible without
repeating any. A "combination lock" is an example of a permutation (it's
actually a "permutation lock" because the numbers can't repeat.).
I am struggling to come up with the MvLogic to create such a thing. Does
anybody have any advice about creating every permutation of a set of choices
with no specific limit to the choices that might be available at a time?
...as in...
Given: A, B, C, D
Result:
A
B
C
D
AB
AC
AD
BA ... etc....
ABCD
ABDC
ACBD
ACDB
ADBC
ADCB ...the end.
Numerically challenged,
Bill
Webnician
Comment