1 / 5

Measuring Efficiency Problem: Towers of Hanoi

Measuring Efficiency Problem: Towers of Hanoi. Three towers Move all disks from one tower to another Only move one at a time Smaller disks must rest on larger ones. High Schools: Information Technology Opportunities at Algonquin College. Measuring Efficiency Problem: Towers of Hanoi.

melosa
Télécharger la présentation

Measuring Efficiency Problem: Towers of Hanoi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Measuring EfficiencyProblem: Towers of Hanoi • Three towers • Move all disks from one tower to another • Only move one at a time • Smaller disks must rest on larger ones High Schools:Information Technology Opportunities at Algonquin College

  2. Measuring EfficiencyProblem: Towers of Hanoi • Calculate the minimum number of moves. High Schools:Information Technology Opportunities at Algonquin College

  3. Measuring EfficiencyProblem: Towers of Hanoi • Minimum number of moves. • What’s the pattern? • 2n - 1 High Schools:Information Technology Opportunities at Algonquin College

  4. Measuring EfficiencyProblem: Towers of Hanoi • Scale the problem from 5 disks to 60. • How long to solve. • One move per second. • 1,152,921,504,607,000,000 moves High Schools:Information Technology Opportunities at Algonquin College

  5. Measuring EfficiencyProblem: Towers of Hanoi • Finish in about 36 billion years • Universe is less than 15 billion years old High Schools:Information Technology Opportunities at Algonquin College

More Related