Assumptions
1) For each set of dice throw there is one run of the program, which means there is one TA list. ( say 2,3,4,5,6)
2) the number of Items in SA is constant for each run. ( say +,-,*)
as for step 4: u use a nested loop. each Item is an array, so there are two arrays for each iteration of the interior loop , one array of _Tperm_ (i.e 2,3,4,6) and one of _Sperm_ (i.e +.-,*) there is only one way to print two such arrays:
The order is fixed (per given two arrays) so in our case 2+3-4*6.
No need to track which items you pool out, because once you decrease the number of Items in SA, you recalculate both lists of permutations
1) For each set of dice throw there is one run of the program, which means there is one TA list. ( say 2,3,4,5,6)
2) the number of Items in SA is constant for each run. ( say +,-,*)
as for step 4: u use a nested loop. each Item is an array, so there are two arrays for each iteration of the interior loop , one array of _Tperm_ (i.e 2,3,4,6) and one of _Sperm_ (i.e +.-,*) there is only one way to print two such arrays:
The order is fixed (per given two arrays) so in our case 2+3-4*6.
No need to track which items you pool out, because once you decrease the number of Items in SA, you recalculate both lists of permutations
Comment