Thursday, April 8, 2010

The Maximal Rectangle Problem

Given a n*m matrix of 1 and 0, find 1) the max square submatrix of all 1s, 2) the max rectangle matrix of all 1s.

1) is easy, see here. The code here needs a little correction, see here.

2) is hard, see here.

1 comment:

SMK said...

sir, can you please provide me with an implementation of the same in java

Blog Archive

Followers