|
-
March 12th, 2011, 06:11 AM
#1
Need some help with exam
Hi. A question that is always present on our exams is about the Tower of Hanoi ( http://en.wikipedia.org/wiki/Tower_of_Hanoi ) .
It takes (2^n)+1 moves to move all the discs, where n is the number of discs.
The question is to give the answer in Θ-notation. According to me, the answer should be Θ(2^n).
Am I correct?
best regars // Pontus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|