hungarian-algorithm Questions

8

I am trying to implement the Hungarian Algorithm but I am stuck on the step 5. Basically, given a n X n matrix of numbers, how can I find minimum number of vertical+horizontal lines such that the z...
Fifi asked 30/4, 2014 at 4:23

1

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...
Ickes asked 10/10, 2013 at 6:21

1

I have an assignment problem, and I wanted to ask the SO community the best way to go about implementing this for my spark dataframe (utilizing spark 3.1+). I will first describe the problem and th...

3

Solved

I am trying to implement the Hungarian algorithm in Java. I have an NxN cost matrix. I am following this guide step by step. So I have the costMatrix[N][N] and 2 arrays to track covered rows and co...
Drawbar asked 10/2, 2013 at 5:47

3

Solved

Is there an extension of the Hungarian algorithm that caters for the assignment of multiple jobs per worker? In its simplest form, the algorithm assigns a single job to a single worker. My applic...
Illuviation asked 5/1, 2018 at 6:42

4

Solved

My problem is as follows: Given a number of 2n points, I can calculate the distance between all points and get a symmetrical matrix. Can you create n pairs of points, so that the sum of the dist...
Conidiophore asked 23/4, 2015 at 21:41

2

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 ro...
Hoedown asked 7/7, 2018 at 12:52

1

Solved

I'm trying to implement a Hungarian Algorithm in C. I have the matrix: 35 0 0 0 0 30 0 5 55 5 0 10 0 45 30 45 And I'm up to the stage where I have to find the minimum amount of lines to cover...
Mancilla asked 18/10, 2017 at 5:51

1

Solved

Find minimum sum of elements of n*n 2D matrix such that I have to choose one and only one element from each row and column ? Eg 4 12 6 6 If I choose 4 from row 1 I cannot choose 12 from row 1...
Accountant asked 21/6, 2016 at 16:9

2

Solved

The Hungarian algorithm solves the assignment problem in polynomial time. Given workers and tasks, and an n×n matrix containing the cost of assigning each worker to a task, it can find the cost min...
Kilian asked 8/7, 2013 at 6:56

4

Solved

So I have a job assignment problem that doesn't have the traditional cost the Hungarian method requires. For example: I have 3 workers - A, B and C I have 5 jobs - 1, 2, 3, 4 and 5 Each worker ...
Rieth asked 9/5, 2013 at 14:11

1

Solved

I have created an implementation of the Hungarian algorithm in C++. This implementation works very well for many cases. However there are some cases that my algorithm does not work at all because I...
Consignee asked 9/3, 2013 at 19:50
1

© 2022 - 2025 — McMap. All rights reserved.