Fundamentals of Algorithms

Question #151

Read the question, compare the options, and review the correct answer below.

CS502 · Final-term only#151

The recurrence relation of Tower of Hanoi is given below T(n)={1 if n=1 and 2T(n-1) if n >1 In order to move
a tower of 5 rings from one peg to another, how many ring moves are required?

  1. A
    ?16
  2. B
    ?10
  3. C
    ?32
  4. D
    ?31
Show correct answer

Correct answer: D. ?31

Check community answers against your course notes.
← More practice questionsTake a timed test