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.
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.