4. (20 points) (20 points)
Consider the simplistic model for killing cancer cells. A tissue consists of an n x n grid. The cancerous cells on the grid are given to you as input. To kill the cancerous cell you have a laser beam. You can select a row/ a column and pass a beam through it. This kills all the cancer cells in that particular row/column. However, hitting a row/a column with a laser beam is an immensely expensive procedure.
The blue cells are the cancer cells.Left is a suboptimal solution of cost 4.Right one is optimal with cost 3
Design an algorithm that outputs the minimum set of columns and rows such that if you hit these
rows and columns with the laser beam then it kills all the cancerous cells in the tissue.