Originally Posted by drewdaman
thanks for the reply GCDEF.
yes that is true. but i was wondering what the most efficient way to do it is. i might have to do it many times and i might be dealing with a very large number of combinations.
another key thing to note is that this is not a simple truth table. The problem is that the number of possible values for each column are different. so in a normal truth table, you just have 0,1 as the possible entries for each row. here, i might have ten possible values for the entries under column 1, 20 possible values for the entries under col 2 and so on.. i guess your idea of nested loops would work, but i would need five-maybe even more- (and we thought bubble sort was bad :p)