Skip to content

Result is inappropriate #6

Open
@lugingf

Description

@lugingf
fmt.Println("1:", hungarian.SolveMin([][]float64{
	{3.16, 0, 0, 0, 0},
	{2.58, 0, 0, 0, 0},
	{2.35, 0, 0, 0, 0},
	{1.76, 0, 0, 0, 0},
	{70.9, 0, 0, 0, 0},
}))

First try:
map[0:map[1:0] 1:map[2:0] 2:map[3:0] 3:map[0:1.76] 4:map[4:0]]
Another try:
map[0:map[3:0] 1:map[2:0] 2:map[4:0] 3:map[1:0] 4:map[0:70.9]]

I believe it should be the same map[0:1.76] at least in every run. But currently if I run algo with zeros in whole column it give me diff sum result

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions