@Lucifer : for W[]={1,3,2,1,2} and Wmax=4. this array will be formed.
0 1 2 3 4 0 1 0 0 0 0 1 1 1 0 0 0 3 1 1 0 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 is it printing all subset ?? if yes then may be i am not getting it.. btw one query :- b) if A[N -1 , K] = 1, b1) then *W[N] doesn't belong to the subset* , continue recursively ( goto step a). why??? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.