Finish 2010-05-05 12:00:00 UTC

dry run

by Chethan C U

Status: Passed
Results: 611602052 (cyc: 3, node: 170)
CPU Time: 68.62
Score: 1223210.0
Submitted at: 2010-04-29 16:40:13 UTC
Scored at: 2010-04-29 16:41:55 UTC

Current Rank: 4225th (Highest: 410th )

Comments
Chethan C U
29 Apr 2010
Y is it failing ?
Alan Chalker
10 May 2010
This entry was submitted during the Twilight phase
Alan Chalker
11 May 2010
This entry gets a result of 1019261890 on the test suite (407659838 more than the contest suite). It has a ranking of 4209 compared to all other entries run against the test suite according to the data set provided by Jan Keller.
Please login or create a profile.
Code
function Aest = solver(imageSize, queryLimit)
    

    Aest = zeros(imageSize);
    %Mask = logical(false*zeros(imageSize));
    Num=ceil((imageSize*imageSize)/queryLimit); % Can be floor/ceil
    %[m,n]=FindMN(Num);
    m =floor(sqrt(Num));
    n =ceil(Num/m);
    for ii=1:ceil(imageSize/m)
        for jj=1:ceil(imageSize/n)
        Mask=false(imageSize);
        Mask((ii-1)*m+1:m*ii,(jj-1)*n+1:n*jj)= true(m,n);
        Mask=Mask(1:imageSize,1:imageSize);
        LocalSum=queryImage(logical(Mask));
        LocalAvg= round(LocalSum/m);
        Aest((ii-1)*m+1:m*ii,(jj-1)*n+1:n*jj)=LocalAvg*ones(m,n);
        Aest=Aest(1:imageSize,1:imageSize);
        end
    end     
end