Code covered by the BSD License  

Highlights from
MATLAB Contest - Flooding

5.0

5.0 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 137.56 KB File ID: #25740
image thumbnail

MATLAB Contest - Flooding

by The MATLAB Contest Team

 

04 Nov 2009 (Updated 12 Nov 2009)

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

| 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)
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
contest Tareq Almustafa 02 Dec 2011 11:23:33

Contact us at files@mathworks.com