Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

X solves the tower of Hanoi problem, first with n disks in time t1 and then with n+2 disks in time t2. Assuming he takes same amount of time for each disk

move and solves the problem in least steps possible, the relation between t1 and t2 is:

A. t2=t1+2 B. t2=2t1+2 C. t2=3t1+2 D. t2=4t1+3



This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
Minimum number of moves required in solving a Tower of Honoi problem with n disks is 2^n-1

If he takes same amount of time for each disk move and solves the problem in least steps possible, 
t_1=2^n-1 where k is some constant. and 

Relation between the times are:
t_2=2^{n+2}-1\\ \Rightarrow t_2=2^n \times 2^2-1\\ \Rightarrow t_2=4 \times 2^n-1\\ \Rightarrow t_2=4 \times 2^n-4+3\\ \Rightarrow t_2=4 \times (2^n-1)+3\\ \Rightarrow t_2=4 \times t_1+3\\ \Rightarrow t_2=4t_1+3

Correct answer is D.
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts