Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
What the HACK is this ???

Subject: What the HACK is this ???

From: Gwendolyn Fish

Date: 3 May, 2010 10:49:07

Message: 1 of 2

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

Subject: What the HACK is this ???

From: Doug Hull

Date: 4 May, 2010 14:55:19

Message: 2 of 2

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@somewhere.com> wrote in message <hrm9n3$lm4$1@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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us