Hungarian Algorithm for non square matrix
问题 I'm trying to implement the Hungarian algorithm. Everything is fine except for when the matrix isn't square. All the methods I've searched are saying that I should make it square by adding dummy rows/columns, and filling the dummy row/column with the maximum number in the matrix. My question is that won't this affect the final result? Shouldn't the dummy row/column be filled with at least max+1? 回答1: The dummy values should all be zero. The point is that it doesn't matter which one you choose