Minimum lines for Hungarian Algorithm

烂漫一生 提交于 2019-12-08 04:52:55

问题


I want to know the minimum number of lines covering all the Zeros for Hungarian Algorithm. Ive followed this link, but the code there is a greedy one.

Hungarian Algorithm: How to cover 0 elements with minimum lines?

For example,

{0,0,1,1},
{1,0,0,1},
{1,0,1,0},
{1,1,1,1},

This case fails. I should get output 3. But the output this solution gives is 4.

Any other ways of solving it would be a great help.

Thanks

来源:https://stackoverflow.com/questions/19288464/minimum-lines-for-hungarian-algorithm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!