Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What are the three pegs called in the Towers of Hanoi?
Think about their naming convention.
What does moving 'n-1' disks involve?
Consider the rules of disk movement.
What is the formula for the number of moves needed to transfer n disks?
Consider how each move doubles the previous steps.
True or False: You can place a larger disk on top of a smaller disk in the Towers of Hanoi.
Think about the rules governing disk placement.
Analyze Tower of Hanoi with 6 disks. If the time taken for one move is 2 seconds, how long will it take to complete all moves?
Use the formula for moves and multiply by time taken for each move.
Create your own recursive algorithm similar to Towers of Hanoi with different rules. Explain the base case and recurrence.
Make sure to outline your rules clearly before applying the recursive strategy.
6 more questions in this section. Enroll free to practise them all.
Enroll free