From: Gwendolyn Fish on
Hello,

can anybody explain this piece of code???

http://www.mathworks.com/matlabcentral/contest/contests/2/submissions/1284

function A = solver(imageSize, queryLimit);
A=zeros(imageSize) ;
if (queryLimit>1e6)
A(1)=pm_hash('crc',dofixrpt('solver.m','file'));%TODO
end

And why it is that good???

Cheers

Gwen
From: Doug Hull on
Gwen,

It is difficult to tell for sure, but here is my guess:

This appears to be a test of the contest machinery to see what is allowed and what is not. They were looking at a function that computes a hash and a function that will find special tags like TODO. It might also be an attempt to figure out the distribution of query limits.

Doug

"Gwendolyn Fish" <someone(a)somewhere.com> wrote in message <hrm9n3$lm4$1(a)fred.mathworks.com>...
> Hello,
>
> can anybody explain this piece of code???
>
> http://www.mathworks.com/matlabcentral/contest/contests/2/submissions/1284
>
> function A = solver(imageSize, queryLimit);
> A=zeros(imageSize) ;
> if (queryLimit>1e6)
> A(1)=pm_hash('crc',dofixrpt('solver.m','file'));%TODO
> end
>
> And why it is that good???
>
> Cheers
>
> Gwen