Я пытаюсь реализовать венгерский алгоритм в Java. У меня есть матрица стоимости NxN. Я следую за этим руководством шаг за шагом. Поэтому у меня есть costMatrix [N] [N] и 2 массива для отслеживания покрытых строк и покрытых cols - rowCover [N], rowColumn [N] (1 означает "крытый", "0 означает непокрытый" )
Как я могу покрыть 0 с минимальным количеством строк? Может кто-то указать мне верное направление?
Любая помощь/предложение будут оценены.