Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:50, nicoleskertich
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, Liantic8738
List the five on-board vehicle subsystems
Answers: 1
image
Computers and Technology, 24.06.2019 02:20, Jonny13Diaz
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, titalili0204
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
Do you know the correct answer?
Tower of hanoi is a mathemeticL game that consist of x pegs n and disk of different sizes. The aim i...

Questions in other subjects: