From: "Nick Howe" <nicholas.r.howe@gmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: MATLAB Programming Contest: May 9 - May 16, 20
Message-ID: <ef55232.15@webcrossing.raydaftYaTP>
Date: Wed, 9 May 2007 15:14:37 -0400
References: <ef55232.-1@webcrossing.raydaftYaTP> <ef55232.0@webcrossing.raydaftYaTP>
Lines: 16
NNTP-Posting-Host: 131.229.222.78
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:407984



Thanks once again to everybody at the Mathworks who works hard to
bring us a fun contest. I have a question concerning a possible
discrepancy in the starter files. The solver provided seems to
generate moves which the grade.m function considers invalid. In
looking into the matter, it appears that the expected order of
indices is swapped. So for example, the first set of commands will
generate a poorer score than the second:

moves = solver(board)
grade(moves)

moves = solver(board)
grade(moves(:,[2 1 4 3]))

Of course, runcontest does the former. So should we write our
solvers accordingly?