subject
Mathematics, 13.10.2020 05:01 ronaldo22

The Towers of Hanoi puzzle has 3 towers labeled 0,1, and 2. There are n pegs of sizes 1 to n, initially placed on tower 0 from top to bottom in increasing order of their sizes. The goal of the well-known puzzle is to move all n pegs to another tower, say tower 2. One can only move one peg at a time, and move the top peg on a tower to be placed on the top of another tower, and cannot place a larger peg on top of a smaller peg. The question is, what is the smallest number of moves needed. The three towers are still labeled 0, 1, and 2. There is one additional constraint: You are only allowed to move pegs from a tower labeled i to the next one labeled (i+1) mod 3. You can imagine the towers as being arranged in a circular fashion, in which case, the constraint says that you can only move pegs in an anti-clockwise manner. So, for example, in order to move a peg from tower 0 to tower 2, you would have to first move it to tower 1 (if both 0 → 1 and 1 → 2 are legal moves at this point), and this sequence would cost two moves instead of just one

Required:
a. Prove that starting at any legal configuration, there is at least one legal move.
b. Inductively prove that for any n≥1, this variant of the Towers of Hanoi puzzle (the goal is still moving all n pegs from tower 0 to tower 2) has a solution (consisting of finitely many legal moves.)
c. Give a recurrence of T(n), the least number of moves needed for this variant of the Towers of Hanoi puzzle with n pegs.

ansver
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 18:00, tporter00
Write the fraction or mixed number and the decimal shown by the model
Answers: 2
image
Mathematics, 21.06.2019 19:00, jjxt126
Use the quadratic formula to solve the equation. if necessary, round to the nearest hundredth. x^2 - 23 = 10x a. -1.93, 11.93 b. 1.93, -11.93 c. 1.93, 11.93 d. -1.93, -11.93
Answers: 2
image
Mathematics, 21.06.2019 20:00, andrejr0330jr
I’m stuck on this equation, anyone got the answer?
Answers: 1
image
Mathematics, 21.06.2019 21:00, villanuevajose95
A. s.a.! this is a similarity in right triangles. next (solve for x)a.) 12b.) 5c.) 12.5d.) [tex] 6\sqrt{3} [/tex]
Answers: 2
You know the right answer?
The Towers of Hanoi puzzle has 3 towers labeled 0,1, and 2. There are n pegs of sizes 1 to n, initia...

Questions in other subjects:

Konu
Mathematics, 22.11.2019 18:31