- #1
rockoroll
- 3
- 0
Hi,
Can anyone give me an idea of how to be able to browse through a set of combinations?
Lets say that I have 3 objects that can hold 3 different values and I want to browse through these. How do I know which is the next combination? I will always know how many values every object can hold and they can always hold the same number of values and therefore I also know total number of combinations. So if I am on combination (3, 2, 1), how do I know that the next combination is (3, 2, 2)?
Object O1 O2 O3
Comb. 1. 1 1 1
Comb. 2. 2 1 1
Comb. 3. 2 2 1
.
.
.
.
Comb. 27. 3 3 3
Can anyone give me an idea of how to be able to browse through a set of combinations?
Lets say that I have 3 objects that can hold 3 different values and I want to browse through these. How do I know which is the next combination? I will always know how many values every object can hold and they can always hold the same number of values and therefore I also know total number of combinations. So if I am on combination (3, 2, 1), how do I know that the next combination is (3, 2, 2)?
Object O1 O2 O3
Comb. 1. 1 1 1
Comb. 2. 2 1 1
Comb. 3. 2 2 1
.
.
.
.
Comb. 27. 3 3 3