Northwest corner method (source code)

= Northwest corner method
{wiki}

The northwest-corner method repeatedly allocates the smaller remaining supply and demand in the current top-left cell to construct an initial transportation basis.