Explanation: 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)
Q. Recurrence equation formed for the tower of hanoi problem is given by
β
Correct Answer: (C)
t(n) = 2t(n-1)+c
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)
Discussion
Question Analytics
139
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
88%
Success Rate