Algorithm for combination generator
In the following pseudo code can explain:
function(n, sets, combination) if n is max then print combination else for every element in the n-th set from sets set the n-th value in the combination to that element call function(n + 1, sets, combination) end for end else end function
Log in to answer.
Mr.Wang 7:51 pm on October 26, 2009
In the following pseudo code can explain: