Mathematics
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.

answer
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 15:00, jfarley259
Hye ryung is the president of the local chapter of the american medical students association (amsa). she is organizing local outreach and informational meetings. at her first meeting there are five people present (including herself). every month after that her group grows by 5 people. a. how many members are in the group after 6 months? b. the logistics of hosting and feeding her group at meetings was more complicated than expected. the cost of feeding 5 people at her first meeting was $30, for 10 people it was $35, for 15 it was $45, and after 6 months all of the costs had added up to $100. write a function to model the cost with the number of people attending meetings. c. what connections can you make between the linear growth of the group’s membership and the increasing costs of running meetings?
Answers: 3
image
Mathematics, 21.06.2019 16:30, tthompson7186
Anyone know? will mark brainliest if correct!
Answers: 1
image
Mathematics, 21.06.2019 21:50, lilybrok04
(x-5)1/2+5=2 what is possible solution of this equation
Answers: 1
image
Mathematics, 22.06.2019 01:00, kam110800
1) your friend taylor missed class today and needs some identifying solutions of systems. explain to taylor where to find the solution(s) of any system using its graph 2)taylor graphs the following in desmos and decides that f(x) = g(x) at x = 0, x = 1, & x = 3. f(x) = 2x+1g(x) = 2x2+1 provide taylor some feedback that explains which part of the answer was incorrect and why.
Answers: 1
Do you know the correct 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: