MATLAB Programming Contest Blog

April 12th, 2006

Tuesday Leap Winner

Markus is the winner of our Tuesday Leap challenge. His entry, submitted at 9:31AM, made the single biggest improvement to the top score.

Meanwhile, David Jones has been pushing the timeout and coming up with a best result of 82058 (85008 is the current leader’s result), showing there’s plenty of room for further improvement if you can find a way to compute it efficiently. The timing penalty grows exponentially, but the “secret” constants are tuned so that it is quite flat below a certain threshold. (Has anyone back-calculated these contents yet?) Of course, the leading entries tend to gravitatate to elbow. The “results vs. time tradeoff” plot at the bottom of the Statistics show this in action.

3 Responses to “Tuesday Leap Winner”

  1. Alan Chalker replied on :

    Constants are:
    k1 = 0.01
    k2 = 0.001
    k3 = 0.125

  2. Alan Chalker replied on :

    Interestingly, the ‘elbow’ is somewhere in the 75 - 95 second range, depending upon how you define it. The curve is flat until 60-65 seconds, which means the current leading entries with 60-61 seconds are right at the point where any additonal time gain has to be offset by result reductions.

    At the current point in the curve with ~85000 as the result and ~61 seconds time, each point taken off the result equals ~0.05s of extra time allowed for computation.

    Since the tweakers are steadily pushing the time down by tenths of a second, they are probably on the right path unless some major algorithm change occurs that drops a lot of points off the result. I suspect, unfortunately, the contest is going to come down to whomever gets a ‘lucky’ break in the timing variation between 5 and 10PM tonight since the queue will probably be spammed this afternoon.

  3. Alan Chalker replied on :

    I stand a bit corrected. Just as I was composing that last note, an algorithm improvement bumped the results down 677 points, while increasing the time by only 10s. Perhaps there is hope yet for the spirit of collaboration.

Leave a Reply


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.
  • Alan Chalker: Doug: Ahhh.. that makes sense. I’ve heard of Camtasia, although I’m a little disappointed...
  • hull: Alan, I made the video with Camtasia. That is how I make all the videos that appear on my blog:...
  • Alan Chalker: Doug: Thanks for the cool video analysis. It really helped me understand what the behavior of the...
  • Alan Chalker: Darren: You bring up a good point. I got an email notice quite a while ago about the contest, but I...
  • Darren Rowland: Hi, Not exactly related to this thread. Annoyed somewhat that I didn’t receive a notification...
  • Alan Chalker: Matthew: Since we can’t post to the newsgroup, I need to reply to your comment there here....
  • Alan Chalker: For those of you interested in understanding how the leading solvers are working, the current top entry...
  • Seth Popinchalk: The queue page indicates that nathan q is now the king of the hill.
  • Alan Chalker: Is Nathan q’s winning entry from twilight the King of the Hill now or is Jan Langer’s...
  • Alan Chalker: I’m seeing the same issues, however the queue is still operational. You can still submit and see...

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