MATLAB Programming Contest Blog

May 16th, 2007

Yi Cao wins the prize

The contest is over, the queue is clear, and the results are in. Our heartiest congratulations go to contest veteran Yi Cao for his winning entry Buy a ticket. We’ll be sending him his Solitaire game board and some other assorted MATLAB goodies.

Yi has a highly decorated career as a MATLAB Programming Contest participant (see his multiple Hall of Fame entries) but this is his first Grand Prize. If you’re wondering what it takes to win a contest these days, be sure and read the fascinating discussion in the contest newsgroup thread. As the contest has evolved, winning strategies have gotten more subtle, to the point that they now include active surveillance of the competition, tracking and identifying people working under assumed names, and simultaneous combinations of code from multiple entries. Well done!

We’d love to hear about your favorite strategies, either in comments here or on the newsgroup. We especially enjoy hearing “war stories” about your how your entries were developed and the unexpected twists you encountered as you played the contest.

Thanks to everyone for playing, or just visiting and watching. We had a great time hosting the contest. See you in six months!

One Response to “Yi Cao wins the prize”

  1. Yi Cao replied on :

    My Twilight code was developed through the following path:

    1. Improve the initial Mathwork team code by retuning a maximum score move.
    2. Convert the above code to be a loop until no move can be made.
    3. Store scores contributed by each move, then at the end cut final negative moves.
    4. Implement a way to check available second consective moves.
    5. Introduce a tuning parameter to weight the score contributed by second consecutive moves.

    The 4th step makes the code is more efficient than others while the last step enables me to win the twilight prize. As I expected, this code immediately was taken by contesters to tune and to improve. The improvement continued until the final.

    During this contest, I did not have much time to work online, hence decided to work offline to concentrate on developing algorithms, for example, three consecutive moves, recurrent consecutive moves, but allmost all were beaten by well tuned leading codes. On Tuesday, I decided to submit my code (CollaborationSolver) with several improvements for the Leap prize. However, it even did not get to the top but was taken by Jin then SY to win the prize. That pushed me to find other improvements to the code and to hold the code until final minutes. I knew it is not enough to win the final by just submit the improved code. Hence, in the final hour, I kept watching the queue to find new codes and successful tuning parameters, combined these codes with my code into five different versions, and finally submitted them within final 5 minutes.

    Allthough I have won several mid-contest prizes before, but this is my first time to win a mid-contest prize before datlight and to win a Grand Prize. This is the best contest I had. Thanks to MAthwork Team to organize this intersting event.

    See you all in six months.

    Yi Cao

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


The MATLAB Programming Contest is a semi-annual competition where contestants submit MATLAB code to try to solve a challenge. For more information, see the overview.
  • gopal: This is a try
  • Amtu: Well done Alfonso ! Congratulations ! Thanks MATLAB team, I’m already looking forward to the next time.
  • Alan Chalker: Just wanted to post here as well that I think Alfonso should be declared the grand winner since the top...
  • Alan Chalker: Just noticed something curious on the statistics page. While some of the charts are updating correctly,...
  • Ned: To Oliver: There will not be a late stage twilight in this contest. So it’s full daylight right to the end.
  • Oliver Woodford: Much obliged, Mike. For anyone looking for a speed boost to that approach I recommend “Basic...
  • MikeR: I agree with Oliver that if possible making the final few hours of the contest conceal the entries will be...
  • Oliver Woodford: When does late stage twilight begin, and will it then run on until the end of the contest?
  • Alan Chalker: As I traditionally do about this time in the contest, I’ve submitted a heavily commented version...
  • the cyclist: Looks like there might be a problem with the statistics page. For one thing, Alan Chalker holds all 20...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.