there is N X N matrix and each of cell has a number on it from 0 to 9. i want to choose N numbers among them. two conditions should be satisfied.
— you can choose at most 1 number from each row.
— you can choose at most 1 number from each column.
(here , N<=50.)
can i get some advices for this problem?
Auto comment: topic has been updated by seecret (previous revision, new revision, compare).
What's the final goal, what do you want to minimize/maximize? You could just choose $$$(1, 1), (2, 2), \dots, (N, N)$$$ but I think it's not what you're asking about.
Please provide problem source . It will give clear understanding of problem statement.
wtf dude !! how about you read your blog again.