I have a dynamic programming (possibly greedy) question.
Let A be an mxn matrix. Let k be an integer such that k ≤ min{m,n}.
Find k elements of A such that each of these k elements are in their unique column and row; and the sum of these k elements is minimized.
In other words, I want to pick k elements from A such that their sum is minimal; but if I select A2,3 then I cannot select A2,6 or A4,3.
A greedy approach seems to be selecting the minimum element in A, removing its row and column, and repeating until A is 'depleted'. However I am unable to prove the greedy choice property in this case, or if it even has the greedy choice property.
I also could not figure out how to build a table for a DP solution.
If this problem has been posed previously and has a specific name, can you please share it?