A perfect matrix is an m-by-n binary matrix that has no possible k-by-k submatrix K that is good with the conditions, k > 3. In summary, balanced matrixes is a perfect matrixes.