Posts

Showing posts with the label cats

boat puzzle: still confused

Image
Back to the boat puzzle... I freely admit this is perhaps among the most boring topics ever posted to a blog in this history of the Intenet. But I feel the irrational need to put some sort of closure on this. I proposed that all solutions to the arbitrary boat puzzle could be reduced to the simple example of Mac-Nadia-Flannel. It was first proposed to me that if there is at least one member not a part of a maximal independent set incompatible with no more than two members of the maximal independent set, the problem can always be solved. This is true: just leave everyone else on the boat and solve the simple Mac-Nadia-Flannel-cans problem with the one remaining seat. But there's a more general approach, in which each elemnt of the "Mac-Nadia-Flannel-cans" puzzle is represented by a group rather than an individual. First, identify which animals which are going to go across on the first trip (the rest are a maximal independent set). Then bring the rest across. T...

boat puzzle: solving the simple cases

Image
Previously I described the boat puzzle and how it's provided some mental exercise for my train commutes. The traditional example is the Mac-Flannel-Nadia case: The solution, as I described, is to identify a maximum independent set, in this case Mac and Nadia. Then you need a number of seats on the boats sufficient to transport the rest, in this case Flannel. So: 1. Flannel taken from shore A to shore B. 2. return with empty boat. Next step doesn't matter, as Mac and Nadia are identical in this problem. I'll pick Mac: 3. Mac taken from shore A to shore B. Now Mac and Flannel are together. I need to return with Flannel on the boat, as I cannot leave the two, or Mac will turd. 4. Flannel taken from shore B to shore A (leave Mac on B). But then.... 5. Take Nadia from A to B (leave Flannel alone). Nadia is now with Mac, and they lick each others faces, so that's fine. 6. Return with empty boat. 7. Bring Flannel from A to B. When I add in the can...

boat puzzle:: the first trip and maximal independent sets

Image
I'll now continue my discussion of the boat puzzle in which the goal is to get cats across a river in a boat, where there are fewer seats on the boat than cats, and certain cats must not be left with each other unsupervised. For the first trip across the goal is simple: to leave no two incompatible cats back on the first short. For example, consider the following problem, with cats Mac, Nadia, and Flannel, where I spiced it up slightly with the requirement to also transport a supply of cat food cans: I want to find a group which has no mutual connections to leave back on the shore. Ideally, my boat should require no more seats than the number of cats + objects to be transported in that first trip. Thus I want this group without mutual connections to be as large as possible. The largest group without connections is called the maximal independent set . Here is the maximal independent set for the graph shown above: The only element not in the maximal independent set is...

boat puzzle

Image
Another puzzle... actually I spent quite a few train commutes thinking about this one. There's a classic puzzle where a farmer needs to get a fox, a sheep, and a cabbage across a river on a boat. I don't have much experience with transporting fox or sheep, and cabbage aren't very exciting, so I'll recast the problem in terms of cats. Consider I want to transport three cats across a river on a boat. I can watch over the cats while they're on the boat, but when they're on one shore or the other, they need to get along. The names of the three cats are Mac, Flannel, and Nadia. If I can watch them they're fine, but if Nadia is left unsupervised with Flannel, Flannel will harrass Nadia. who needs her rest. And if Flannel is left unsupervised with Mac, Mac will turd, so we need to be careful not to let that happen. On the other hand, if Mac and Nada are left with each other, they'll just lick each others faces, so that's fine. The challenge is...

cat feeder FAIL

Image
I live with three cats. Of the three, the older of the two males has food issues. He was found, nearly starved, as a kitten, and apparently learned from that harsh lesson to never take the future availability of food for granted. He has a special weakness for crunchies, which he loves. These have the further disadvantage of being calorie dense: he can consume a lot more of them before reaching stomach capacity. So to keep him at a healthy weight it's important to control how much he gets. With this in mind, before leaving for a three-day mini-vacation back in October (which included some fantastic riding; okay, mandatory cycling content), it was time to break out the automated feeder. The feeder has a reservoir of food connected to the outside world with a tube containing a rotating screw. The screw turns on when programmed to do so, channeling food down the tube, where it pushes open a one-way door and then falls into a feeding tray, where it is quickly consumed by enth...