I have a matrix of boolean values where the columns are unique actions and the rows are all possible solutions, so each row uses 1 to indicate whether this solution requires the associated unique action. I want to eliminate all rows that are a superset of any other row in the set and return a matrix where none of the rows are supersets of any other row.
Is there any way to efficiently do this in less than n^2 time?
Tried graph algorithms (failed) and general sets manipulations but that's not efficient enough.