[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Unit state machine
From: |
Kai Antweiler |
Subject: |
Re: [glob2-devel] Unit state machine |
Date: |
Tue, 20 Feb 2007 09:22:02 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.20 (linux) |
> Vertex set 1: Buildings
That's wrong. We want matchings.
Vertex set 1: offered Jobs
> Vertex set 2: globs
> Edge per resource: exists if glob has correct or no resource type, and can
> do the job before starving.
> Weight of Edge: distance + priority ?
> (small priority number = highest priority)
> or distance * priority, or sqrt(distance) * priorty ?
I guess we need the maximizing version of the algorithm instead.
Maybe we don't need to implement it on our own:
http://www.koders.com/default.aspx?s=hungarian+algorithm&btn=Search&la=Cpp&li=*
--
Kai Antweiler