actually a greedy approach for this problem exists: just convert the first row and first column to all zeros if after this step matrix is not a complete zero matrix then it's impossible to make it
On Sun, Dec 5, 2010 at 9:10 AM, Prims <[email protected]> wrote: > How do i convert a binary matrix(containing only 0s and 1s) to a > complete zero matrix? Only operations allowed are u can toggle a whole > row or a whole column. The conversion has to be done in minimum number > of steps (a step is defined as toggling a whole row or whole column > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
