Suppose you have N & times; N, where each row has exactly one non-zero element, and each column has exactly one non-zero element (non-zero elements can be either positive or negative). We want to find the submatrix of the maximum amount. How effective can we do this?
The matrix has a dimension of N x N and only N nonzero elements. N is so large that I cannot use the O (N 3 ) algorithm . Does anyone know how to solve this in time O (N 2 ), O (N log N) or some other complicated time complexity?
Thanks!
source
share