5. Tower of Hanoi a. In the original version of the Tower of Hanoi puzzle,
as it was published by Edouard Lucas, a French mathematician, in the
1890s, the world will end after 64 disks have been moved from a mystical
Tower of Brahma. Estimate the number of years it will take if monks could
move one disk per minute. (Assume that monks do not eat, sleep, or die.)
6. BRestricted Tower of Hanoi Consider the version of the Tower of Hanoi
puzzle in which diskshavetobemovedfrompegAtopegCusingpeg
7. Ba. Prove that the exact number of additions made by the recursive
algorithm BinRec( )for an arbitrary positive integer is blog2c
8. a. Design a recursive algorithm for computing 2for any nonnegative
integer that is based on the formula: 2=2
−1+2
−1
9. Consider the following recursive algorithm.
Algorithm Riddle([0 −1])
//Input: An array [0 −1] of real numbers
a. What does this algorithm compute?