Well, Freejack, here r the answers to the questions u asked:
1) I get the input in terms of binary for each cell of the map
2) I'm presently trying to do it for 4 variables
3) I've to present it at the earliest the last deadline being 31 March.
So, exactly i've to get the values for each cell of the map and then simplify the map and output the minimum result in sum of product form