Question 8. Remember the Towers of Hanoi problem, in which a sequence of disks of decreasing size needs to be moved from
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 8. Remember the Towers of Hanoi problem, in which a sequence of disks of decreasing size needs to be moved from
Question 8. Remember the Towers of Hanoi problem, in which a sequence of disks of decreasing size needs to be moved from a start peg to a goal peg using a middle peg as intermediate storage one disk at a time, and a large disk cannot be placed on top of a smaller disk. We modify the initial problem, so every disk moves only to adjacent pegs (e.g. no jumps between the leftmost peg to the rightmost peg) The recurrence relation for this variation of the problem is: an = 3a,-1+2,20 = 2 a. Suppose that, instead of one disk of each size, you have three. Find the recurrence relation for this problem and solve it in closed form. b. Suppose a robot can move one disk every 0.01 seconds. What is the largest Tower of Hanoi in terms of number of disks that can be solved under 60 minutes for this new problem?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!