5.0

5.0 | 2 ratings Rate this file 29 downloads (last 30 days) File Size: 137.56 KB File ID: #25740

MATLAB Contest - Flooding

by The MATLAB Contest Team

 

04 Nov 2009 (Updated 12 Nov 2009)

Code covered by the BSD License  

All the files needed to develop and score an entry for the MATLABĀ® Programming Contest.

Download Now | Watch this File

File Information
Description

This is the starter kit for the Fall 2009 MATLAB Programming Contest, November 4th-11th, 2009.
 
For more information see the rules:
http://www.mathworks.com/contest/flooding/rules.html

MATLAB release MATLAB 7.9 (2009b)
Zip File Content  
Other Files flooding/getComplexity.m,
flooding/grade.m,
flooding/runcontest.m,
flooding/runSolutionVector.m,
flooding/solver.m,
flooding/testsuite_actual.mat,
flooding/testsuite_sample.mat,
flooding/validateSolutionVector.m,
flooding/visualize.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
04 Nov 2009 Nick Clark  
05 Nov 2009 Oliver Woodford

Fun

07 Nov 2009 us

just a very marginal note:
this version of GETCOMPLEXITY's number-extraction-engine(!) is about 25% faster and does not use EVAL...

function mc=getComplexity(filename)
mc=mlint('-cyc','-string',filename);
mc=regexp(mc,'The McCabe complexity of \S+ is (\d+)','tokens');
mc=[mc{:}];
mc=max(strread(sprintf('%s\n',mc{:})));
end

us

Please login to add a comment or rating.
Updates
05 Nov 2009

Truncate solution vector longer than numel(board).
Speed up runSolutionVector.m.
Change variable name to reflect linear indexing of target.

12 Nov 2009

Add actual testsuite used in the contest.

Tag Activity for this File
Tag Applied By Date/Time
contest The MATLAB Contest Team 04 Nov 2009 10:53:25
contest Marleen 06 Nov 2009 10:20:27
contest Matt G 23 Dec 2009 13:00:33
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com