About the Hungarian algorithm today:

Indeed, as several of you pointed out, we could have changed the definition of utility to make it , and not . Now a buyer could have negative utility for their most preferred item as well, but that’s OK. The argument for termination was that the total dual decreases at each step (this remains unchanged), and it is bounded below by the primal value (which is also unchanged). The proof is even cleaner.

Other advantages: now each buyer always has degree at least one in , so we don’t need to adjust the prices (or raise prices on the most constricted set), we just raise prices on any constricted set. This change makes the preference graph be invariant to adding a constant to every item’s price, so when the prices are say for all items, is the same as the preference graph when all the items have price zero.

The non-negative utility makes more sense in the max-weight matching problem, where we don’t enforce getting a perfect matching. There the dual variables indeed have to be non-negative — which is where I first saw the algorithm, hence its presence in my presentation today.

Re Aram’s question about LPs and duals: ~~I will post something to help you quickly see how to write and mechanically write LP duals. Watch this space, and the next lecture.~~ A good reference is Section 6.2 of the Matousek-Gaertner book (CMU link only), which gives you rules of thumb on how to take duals. And if you haven’t seen the basic idea behind duality, definitely read over the introductory text in Section 6.1! Finally, I find the proofs (in the following sections) are very useful to give more intuition for why strong duality holds.

### Like this:

Like Loading...

*Related*