M

Mr. Dubey • 100.69K Points
Coach

Q. Recurrence equation formed for the tower of hanoi problem is given by

  • (A) t(n) = 2t(n-1)+n
  • (B) t(n) = 2t(n/2)+c
  • (C) t(n) = 2t(n-1)+c
  • (D) t(n) = 2t(n/2)+n
Share

Explanation by: Mr. Dubey
as there are 2 recursive calls to n-1 disks and one constant time operation so the recurrence relation will be given by t(n)

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics