For a given bit array as shown below (x is 1, . is 0) we have an existing algorithm to determine that each row is unique:
XXX...
X.XXXX
XX..X.
.XX...
However, performance suffers if the number of rows is very large. Can anyone suggest algorithms that will perform better to find these unique row sequences if the array has 1 million rows?
In other words, these rows:
XXX...
X.XXXX
XX..X.
.XX...
XXX...
X.XXXX
XX..X.
.XX...
XXX...
X.XXXX
XX..X.
.XX...
will always have the sequences shown in the first array no matter how big the array height ?