maandree / hungarian-algorithm-n3 Goto Github PK
View Code? Open in Web Editor NEW[Complete] 𝓞(n³) implementation of the Hungarian algorithm
License: Other
[Complete] 𝓞(n³) implementation of the Hungarian algorithm
License: Other
Unlikely most of Hungarian algorithms, this implementation do not assume that the matrix related to the problem is square or equal number of e.g. workers and tasks.
To terminate progress, the function kuhn_is_done() should be able to return true, in the following cases:
Considered two cases;
In both cases, there cannot be more progress possible, but for only one of them, test (count==n) shall return true.
=> the final return statement should be
return (count == MIN(n,m));
or
return (count==n)||(count==m);
I should make this program portable someday…
(It was never intended for anything else than to
be translated into psuedocode.)
The function uses a single allocation for three separate array. One array of c times BitSetLimb, and two arrays of (c+1) times size_t.
When the starting address of this->next is calculated, there are used:
c times BitSetLimb plus only c times size_t.
Now arrays this->prev and this->next are overlapping by one size_t.
I would expect that correct starting address is :
this->next = (size_t *)&this->_buf[c * sizeof(BitSetLimb) + (c+1) * sizeof(size_t)];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.