The ninth MATLAB Programming Contest, Furniture, ran from November 3-10, 2004.
You are given the task of rearranging furniture in a room while doing as least work as possible. For more information, see the contest page:
If you run the example shown in the rules,
with the supplied solver, you get easily a first movement equal to move = [ 4 1 ; ...
which is impossible.
There is a problem with rows and columns,
x and y, etc. in the solver, and in the
It is considering North=3, East=1, South=2, West=4.
Added missing test suites.
Fixed copyright line.
Remove negative weights from test suite.
Fix a bug in the error checking. Since "a" and "af" are matrices, line 88 of runcontest.m should be "if any(a(:)~=af(:))".