I'm sure there's a name or method for what I'm trying to achieve, but as you can judge from the somewhat vague title of this question I just don't know how to word it, and therefore am having trouble searching.
Here's what I would like to do:
I have a list of items with several possible states. For simplicity, let's call the items A, B and C and the states 0 through 5.
The States of each item can only increment by 1 during each step. Only one item may be incremented during each step. At the start of each scenario A, B and C are all 0. At the end of each scenario A, B and C are all 5.
This would be an example of the most obvious scenario. All scenarios would have the same amount of steps.
A 0 1 2 3 4 5 5 5 5 5 5 5 5 5 5 5
B 0 0 0 0 0 0 1 2 3 4 5 5 5 5 5 5
C 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5
I would like to iterate through every single possible "decision path". I have calculations to perform at every step, and I have values to compare for each scenario to determine which is superior. Just in case it's not already clear, here's an example of a completely random scenario, but one which would eventually be run with the desired algorithm.
A 0 0 0 0 0 0 1 1 2 3 4 5 5 5 5 5
B 0 1 2 2 3 3 3 4 4 4 4 4 4 4 5 5
C 0 0 0 1 1 2 2 2 2 2 2 2 3 4 4 5
Is there a name or common procedure for this sort of task? Not necessarily looking for a direct answer (would be a bonus), but at least some key words so I can search more effectively!
Thanks in advance.