internetguru / scpc

0 stars 0 forks source link

power_set function upgrade #16

Closed martapavelka closed 3 years ago

martapavelka commented 3 years ago

One more thing I was not able to do, but would be a nice bonus.

The power_set function generates all the subsets of a given set. Similarly to the permutation function, it would be nice if we could generate 'next set from the power set' instead of creating the whole list every time and then go through it.

Another bonus would be to check, if the input matrix contains at least two rows. With one row, the programs do not work.