Reflection on Development Schedules

This was much easier last time, when I was at the job which got out at 4:30 and has a 20 minute commute, rather than the one that got out at 9:00 with the 2 hour commute…

While I didn’t get anything done for myself today, I did manage to put some of the finishing touches on the best 800 lines of code I’ve ever written.  Sadly the day job owns it so I can’t go around showing it off, but darn, when all six hundred automated tests worked it was a beautiful, beautiful thing.  Its probably one of the few times where I actually got to put my CS degree qua CS degree to use, rather than just using programming skills.

Let’s see, what would have the same complexity.  OK, imagine you own a zoo.  The zoo has many families of animals.  Each family is composed of several individual types of animals.  The zoo has to fill certain exhibits, given constraints like “This exhibit needs at least one animal from the family of cats, one animal from the family of turtles, and two animals from the family of rodents of which at least one is not a rabbit”.  Each exhibit is in an enclosure, of which the number is strictly limited.

Certain animals eat each other, and as a result can’t be placed in the same enclosure.

Your tasks:

#1 — I give you an exhibit and a list of animals the zoo has on hand.  You tell me what animals I can put in the exhibit to satisfy it.

#2 — As #1, except there are 2 exhibits with 1 enclosure and a limit on space, and your solution must be correct for any possible exhibit (and correctly report “impossible” as well).

#3 — Here’s the freaking zoo.  Enumerate all possible states of it.

I’ll admit — I stayed a little later than I was planning not so much because this was urgent to get done today but because I was so close to beating the stupid thing.

Explore posts in the same categories: 30days

4 Comments on “Reflection on Development Schedules”

  1. Sohail Says:

    Why are you in that job? I always hear you complaining about the hours. Do they really pay you that well?

  2. From what I know, its more a casualty of working in Japan. Your almost ‘expected’ to do the long hours and not leave before the bosses.

  3. Mike Wilson Says:

    That sounds like a fun challenge. I wish you could share the code, I particularly enjoy working through original and new code to solve problems like this.

    The logic seems to be similar to that required to resolve a Soduku puzzle. Hmm, where you working on a Soduku solution? 🙂


    Mike Wilson

  4. Patrick Says:

    That is an interesting way of looking at it. There is already at least one really good sudoku solver though (I briefly entertained the notion of writing a sudoku game back during the craze).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: