in reply to Re: decomposing binary matrices
in thread decomposing binary matrices
Treat each column as a bitstring. Walk each column and push the column index into a hash key (the bitstring itself). At the end, walk the hash looking for hash keys with a value count that is the same as the number of bits in the key. Since the value is an array of the column indices, you know what columns to extract.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: decomposing binary matrices
by hv (Prior) on Feb 16, 2007 at 14:25 UTC | |
by Limbic~Region (Chancellor) on Feb 16, 2007 at 14:28 UTC | |
|
Re^3: decomposing binary matrices
by fenLisesi (Priest) on Feb 16, 2007 at 14:26 UTC |