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 00:30
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
question
Computers and Technology, 22.06.2019 08:40
What are the three parts to physical security standards for various types of army equipment and the risk level
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
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
Mathematics, 22.07.2019 01:00
question
History, 22.07.2019 01:00
question
Social Studies, 22.07.2019 01:00
Questions on the website: 13722367