subject

Tower of hanoi is a mathemeticL game that consist of x pegs n and disk of different sizes. The aim is to move disk to another peg by obeying simple rules. only one disk can be moved at a time.
each move consist of taking the upper disks from one of the stacks and placing it on the top of another stack(a disk can only be moved if it is the upper most disk)
No disk may be placed on top of the smaller disk.
The minimum number of moves :2^n-1 where n is the number of disks.
please solve this problem using recrusion technique by having 3 pegs and 3 disks. your program needs to show each step.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aletter or menu command that starts an action when the user presses the designated letter and the alt key together is called what?
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Tower of hanoi is a mathemeticL game that consist of x pegs n and disk of different sizes. The aim i...
Questions
question
Biology, 01.09.2019 19:30
Questions on the website: 13722359