Professional Documents
Culture Documents
Exercise 2
Exercise 2
Instructions:
1. Play Tower of Hanoi with 3 discs and then 4 discs. (online or actual)
2. Take note of the steps that you take and the number of steps made before winning.
3. Validate the claim that there will be at least 2n − 1steps to take before winning, where n
is the number of discs.
Problem Identification What is the specific problem your model is going to solve?
Making assumptions and What have you assumed in order to solve the problem?
identifying variables Why did you make these choices?
1. prepare 3 (4) discs of different sizes, and 3 sticks. Stack the desired number of discs as
shown in the figure. The bigger disc will be at the bottom of the smaller disc as shown in
the figure.
2. The objective is to get all the discs from one side to the other.
3. You can only move one disc at a time and it must be the upper disc on the stack. A
smaller disc can never be below a larger one.
4. All discs have to be on the pegs unless they are being moved.