Good article, thanks.
The concept is to pick all two-state combinatations,
and there is an easy, fast, accurate model for this.
It is called "combinations without repetitions"
and can be implemented like this in pseudocode:
while state1 = states.shift
for state2 in states
# your code here... no need to skip cases
end
end
Joel Parker Henderson - 2007-10-31 17:08:52
Good article, thanks. The concept is to pick all two-state combinatations, and there is an easy, fast, accurate model for this. It is called "combinations without repetitions" and can be implemented like this in pseudocode: while state1 = states.shift for state2 in states # your code here... no need to skip cases end end