Skip to content

Welcome Sites Tools Teacher guide Help
  You are not logged in Join

Log in

Pedagogic advice: Resort Infinity Guide

Created by Ken   -   Topic Group: Infinity   -   Created: 21-04-05   -   Modified: 11-05-05




This document provides some background and advice for using the Resort Infinity tool.

It is based upon David Hilbert's Hotel Infinity story. A typical version of the story can be found here.

In ToonTalk it made more sense to make Resort Infinity where each guest gets their own private cottage.

Unlike most stories Resort Infinity starts out very finite -- zero cottages and no guests. But then when you turn on the first problem (by pointing to it and pressing space) an infinite number of guests arrive in a nest in a box. A guest is just a picture of a guest with a label that let's you know the guest number and group number. Every 5 seconds another one of the infinite guests arrives by bird.

The first task is to have cottages built for each guest. You solve this by giving this box to the Solution bird:

It doesn't matter for the first problem what's in the first hole (nothing is OK). The second hole of the second hole needs to be the nest where the arriving guests are coming in. The Problem 1 nest in this case.

Just before giving a solution to the Solution bird I recommend you save your city so you can go back to an earlier version if mistakes are made later.

Before giving this to the Solution bird, I recommend you try out the robot to see what it does. This robot just gives the guest number to the bird -- indicating that the address of guest i should be i.

After this is given to the Solution bird, one should go outside to see if all is OK.  Trucks will be seen driving around and cottages being built. The cottages are decorated with address number. If you go inside you'll find a box with the guest in it. As you explore, more and more cottages are built for the first infinite group of guests. You might want to press F8 before the Solution bird flies off so that you can see all the action from the helicopter when you press F8 again to resume power to the robots.

The second problem is that 5 more guests have arrived. Where to put them? Robots are busy arranging for all the guests in the first group to be put in cottages 1, 2, 3, and so on.

Hints are available by flipping over hint text pads. Like Russian dolls these hints might contain hints that contain hints and so on.

The solution to the second problem is to broadcast an announcement to all the guests to move to a new cottage whose address is 5 greater than the current address. And then the 5 guests can be given cottages 1, 2, 3, 4, and 5. The box for doing this looks like this:




The empty hole should be filled with the nest of Problem 2.

It is fun to press F8, give the Solution bird this box, and then go outside to watch houses blowing up and being built.

Check out a house less than 6 and one greater than 5 to see the labels of the guests to see that all worked as it should.

Save your city.

Problem 3 is that a new infinite group of guests has arrived. I found that if student is stumped a good hint is to suggest that the move robot maybe should do something other than adding. The most economical solution is to train a "move" robot that doubles the address. The build robot then puts the new guests in odd cottages by computing 2i-1.

Note that other solutions will leave some addresses unoccupied. A harder version of these problems is to add constraints such as no unoccupied addresses and to minimize the number of times guests are asked to move.

Problem 4 is that 3 groups of infinite guests arrive. The expected solution is the move each guest from i to 4i and to assign the new guests to 4i-j (where j is the group number). Note that there are other interesting solutions. One is to repeat the solution to problem 3 three times. Another is to use a Merge robot (that combines two sequences into one) to combine two infinite streams of guests into one and then use another Merge robot to combine the result and the third stream of guests.

Problem 5 is that an infinite number of infinite groups of guests arrive. The classic solution is to move existing guests from i to 2i and then assign each incoming group to successive primes and put each guest in the ith power of the jth prime. This is rather wasteful (lots of empty lots) and is a bit hard to compute -- though probably a worthwhile exercise.

In The Infinite Book by John Barrow he presents a solution that is more economical. Yishay Mor also proposed a similar solution. If you picture each infinite group of guests as a row then you can enumerate the grid by diagonals (Yishay) or growing squares (Barrow). Barrow assigns the next (odd) address to 1,1, then 2,1 then 2,2 then 1,2 then 3,1 then 3,2 then 3,3 then 2,3 then 1,3. (Vertical line and then horizontal line.) Yishay proposed 1,1 then 2,1 then 1,2 then 3,1 then 2,2 then 1,3 which is how one traditionally enumerates the rational numbers (just replace , with / above).

While there probably is a nice functional description of Yishay's solution I followed Barrow where

if i less than or equal to j then

   j2-(i-1)

while if i greater than or equal to j then

  (i-1)2+j.

(They produce the same number with i=j.)

A discussion of the relationship of this problem and the one of enumerating the rational numbers can be very fruitful. They are accomplishing the same task except that in Resort Infinity the robot needs to calculate the nth element of a sequence rather than generate the sequence itself. An alternative for solving this puzzle is to manage the building of houses with robots made by the students rather than just providing the move and build robots. The robots would need to do some of the work of the robots on the back of the gadget in the lower right corner of the reception.