+ All Categories
Home > Documents > Tower of Hanoi

Tower of Hanoi

Date post: 07-Jan-2016
Category:
Upload: miach
View: 32 times
Download: 0 times
Share this document with a friend
Description:
Tower of Hanoi. Members. 1.Krit Chandrema M.2/1 No.1 2.Pongsakorn S urapongwanitchakul M.2/1 No.5 3.Arituch Chainilpan M.2/1 No.16 4.Parit Prompuntjai M.2/1 No.27. Pseudo code. 1. Start 2. 5 rings and 3 bars 3. Which bar will we move ring 1 to 4. Bar C 5. Ring 1 in the bar C - PowerPoint PPT Presentation
Popular Tags:
86
TOWER OF HANOI
Transcript
Page 1: Tower of Hanoi

TOWER OF HANOI

Page 2: Tower of Hanoi
Page 3: Tower of Hanoi
Page 4: Tower of Hanoi
Page 5: Tower of Hanoi

1.Krit Chandrema M.2/1 No.12.Pongsakorn Surapongwanitchakul M.2/1

No.53.Arituch Chainilpan M.2/1 No.164.Parit Prompuntjai M.2/1 No.27

Members

Page 6: Tower of Hanoi

1. Start2. 5 rings and 3 bars 3. Which bar will we move ring 1 to 4. Bar C 5. Ring 1 in the bar C6. Which bar will we move ring 2 to7. Bar B8. Ring 2 in the Bar B

Pseudo code

Page 7: Tower of Hanoi

9. Which bar will we move ring 1 to10. Bar B11. Ring 1 in the bar B12. Which bar will we move ring 3 to13. Bar C14. Ring 3 in the bar C15. Which bar will we move ring 1 to16 . Bar A17. Ring 1 in the bar A18. Which bar will we move ring 2 to19. Bar C20. Ring 2 in the bar C

Page 8: Tower of Hanoi

21.Which bar we will move ring 1 to?22.Bar C23.Ring 1 in the bar C24.Which bar will we move ring 4 to?25.Bar C26.Ring 4 in the bar BC27.Which bar will we move ring 1 to?28.Bar A29.Ring 1 in the bar A30.Which bar will we move ring 2 to?31.Bar B32. Ring 2 in the bar B

Page 9: Tower of Hanoi

33.Which bar will we move ring 1 to?34.Bar B35.Ring 1 in the bar B36.Which bar will we move ring 3 to?37.Bar A38.Ring 3 in the bar A39.Which bar will we move ring 1 to?40.Bar A41.Ring 1 in the Bar A42.Which bar will we move ring 2 to?43. Bar C44.Ring 2 in the bar C

Page 10: Tower of Hanoi

45.Which bar will we move ring 1 to?46.Bar C47.Ring 1 in the bar C48.Which bar will we move ring 3 to?49.Bar B50.Ring 3 in the bar B51.Which bar will we move ring 1 to?52.Bar A53.Ring 1 in the bar A54.Which bar will we move ring 2 to?55.Bar B56.Ring 2 in the bar B

Page 11: Tower of Hanoi

57.Which bar will we move ring 1 to?58.Bar B59.Ring 1 in the bar B60.Which bar will we move ring 5 to?61.Bar C62.Ring 5 in the bar C63.Which bar will we move ring 1 to?64.BarA65.Ring 1 in the bar A66.Which bar will we move 2 to?67.Bar C68.Ring 2 in the bar C

Page 12: Tower of Hanoi

69.Which bar will we move 1 to?70.Bar C71.Ring 1 in the bar C72.Which bar will we move 3 to?73.Bar A74.Ring 3 in the bar A75.Which bar will we move ring 1 to?76.Bar B77.Ring 1 in the bar B78.Which bar will we move ring 2 to?79.Bar A80.Ring 2 in the bar A

Page 13: Tower of Hanoi

81.Which bar will we move ring 1 to?82.Bar A83.Ring 1 in the bar A84.Which bar will move ring 4 to?85.Bar C86.Ring 4 in the bar C87.Which bar will we move ring 1 to?88.Bar C89. Ring 1 in the bar C90.Which bar will we move ring 2 to?91.Bar B92.Ring 2 in the bar B

Page 14: Tower of Hanoi

93.Which bar will we move ring 1 to?94. Bar B95. Ring 1 in the bar B96. Which bar will we move ring 3 to?97.Bar C98.Ring 3 in the bar C99.Which bar will we move 1 to?100.Bar A101. Ring 1 in the bar A102.Which ring will we move ring 2 to?103.Bar C104.Ring 2 in the bar C

Page 15: Tower of Hanoi

105.Which bar will we move ring 1 to?106.Bar C107.Ring 1 in the bar C108.Win109.End

Page 16: Tower of Hanoi

Start

5 rings and

3bars

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Page 17: Tower of Hanoi
Page 18: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar B

YES

NO

Page 19: Tower of Hanoi
Page 20: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar B

YES

NO

Page 21: Tower of Hanoi
Page 22: Tower of Hanoi

Which bar we will

move ring 3 to?

Bar CBar B

Ring 3 in the bar C

YES

Page 23: Tower of Hanoi
Page 24: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

Page 25: Tower of Hanoi
Page 26: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar C

YES

NO

Page 27: Tower of Hanoi
Page 28: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Page 29: Tower of Hanoi
Page 30: Tower of Hanoi

Which bar we will

move ring 4 to?

Bar CBar B

Ring 4 in the bar B

YES

NO

Page 31: Tower of Hanoi
Page 32: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

NO

Page 33: Tower of Hanoi
Page 34: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar B

YES

NO

Page 35: Tower of Hanoi
Page 36: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar B

YES

NO

Page 37: Tower of Hanoi
Page 38: Tower of Hanoi

Which bar we will

move ring 3 to?

Bar BBar A

Ring 3 in the bar A

YES

NO

Page 39: Tower of Hanoi
Page 40: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

NO

Page 41: Tower of Hanoi
Page 42: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar C

YES

NO

Page 43: Tower of Hanoi
Page 44: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Page 45: Tower of Hanoi
Page 46: Tower of Hanoi

Which bar we will

move ring 3 to?

Bar CBar B

Ring 3 in the bar B

YES

NO

Page 47: Tower of Hanoi
Page 48: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

NO

Page 49: Tower of Hanoi
Page 50: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar B

YES

NO

Page 51: Tower of Hanoi
Page 52: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar B

YES

NO

Page 53: Tower of Hanoi
Page 54: Tower of Hanoi

Which bar we will

move ring 5 to?

Bar CBar B

Ring 5 in the bar C

YES

NO

Page 55: Tower of Hanoi
Page 56: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

NO

Page 57: Tower of Hanoi
Page 58: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 2 in the bar C

YES

NO

Page 59: Tower of Hanoi
Page 60: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Page 61: Tower of Hanoi
Page 62: Tower of Hanoi

Which bar we will

move ring 3 to?

Bar BBar A

Ring 3 in the bar A

YES

NO

Page 63: Tower of Hanoi
Page 64: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar B

YES

NO

Page 65: Tower of Hanoi
Page 66: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar BBar A

Ring 2 in the bar A

YES

NO

Page 67: Tower of Hanoi
Page 68: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring 1 in the bar A

YES

NO

Page 69: Tower of Hanoi
Page 70: Tower of Hanoi

Which bar we will

move ring 4 to?

Bar CBar B

Ring 4 in the bar C

YES

NO

Page 71: Tower of Hanoi
Page 72: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Page 73: Tower of Hanoi
Page 74: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar B

Ring 1 in the bar B

YES

NO

Page 75: Tower of Hanoi
Page 76: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar BBar A

Ring in the bar B

YES

NO

Page 77: Tower of Hanoi
Page 78: Tower of Hanoi

Which bar we will

move ring 3 to?

Bar CBar B

Ring 3 in the bar C

YES

NO

Page 79: Tower of Hanoi
Page 80: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar A

Ring 1 in the bar A

YES

NO

Page 81: Tower of Hanoi
Page 82: Tower of Hanoi

Which bar we will

move ring 2 to?

Bar CBar A

Ring 2 in the bar C

YES

NO

Page 83: Tower of Hanoi
Page 84: Tower of Hanoi

Which bar we will

move ring 1 to?

Bar CBar B

Ring 1 in the bar C

YES

NO

Win

End

Page 85: Tower of Hanoi
Page 86: Tower of Hanoi

Thank You for listening to our presentation


Recommended