Posts Tagged ‘Research’

Database for a Zoo

October 9, 2011 Leave a comment

An interesting read at Database for a Zoo « Experimental Thoughts.


Let’s say you’re operating a zoo, and you have this simple constraint:

You can put many animals of the same type into a single cage; or distribute them among many cages; but you cannot mix animals of different types within a single cage.

This rule prevents, for example, assigning a zebra to live in the same cage as a lion. Simple, right?

How do you enforce it? Any ideas?