Given some binary matrix M, suppose we are presented with the collection of
its rows and columns in independent arbitrary orderings. From this information,
are we able to recover the unique original orderings and matrix? We present an
algorithm that identifies whether there is a unique ordering associated with a
set of rows and columns, and outputs either the unique correct orderings for
the rows and columns or the full collection of all valid orderings and valid
matrices. We show that there is a constant c>0 such that the algorithm
terminates in O(n2) time with high probability and in expectation for random
nΓn binary matrices with i.i.d.\ Bernoulli (p) entries
(mijβ)ij=1nβ such that n(loglog(n))2clog2(n)ββ€pβ€21β