Describe the frame-stewart algorithm for moving the disks

Assignment Help Mathematics
Reference no: EM131167918

Involve the reve's puzzle, the variation of the tower of hanoi puzzle with four pegs and n disks. Before presenting these exercises, we describe the Frame-Stewart algorithm for moving the disks from peg 1 to peg 4 so that no disk is ever on top of a smaller one. This algorithm, given the number of disks n as input, depends on a choice of an integer k with 1 ≤ k ≤ n. When there is only one disk, move it from peg 1 to peg 4 and stop. For n > 1, the algorithm proceeds recursively, using these three steps. Recursively move the stack of the n - k smallest disks from peg 1 to peg 2, using all four pegs. Next move the stack of the k largest disks from peg 1 to peg 4, using the three-peg algorithm from the Tower of Hanoi puzzle without using the peg holding the n - k smallest disks. Finally, recursively move the smallest n - k disks to peg 4, using all four pegs. Frame and Stewart showed that to produce the fewest moves using their algorithm, k should be chosen to be the smallest integer such that n does not exceed tk = k(k + 1)/2, the kth triangular number, that is, tk-1

Use Exercise 43 to give an upper bound on the number of moves required to solve the Reve's puzzle for all integers n with 1 ≤ n ≤ 25.

Reference no: EM131167918

Questions Cloud

Find the probability that the commute : Commute times of teachers in a large urban area are normally distributed with a mean of 46 minutes and a standard deviation of 5 minutes. If a commute time is randomly selected, find the probability that the commute time will be greater than 51 mi..
Why do interest groups often have a large advantage in texas : Why do interest groups often have a large advantage in Texas? What did Governor Rick Perry draw up during a special session of the legislature in 2003 to address the existing disparity between Republicans' success in statewide races and their minor..
Find the recurrence relation satisfied by rn : Find the recurrence relation satisfied by Rn, where Rn is the number of regions into which the surface of a sphere is divided by n great circles (which are the intersections of the sphere and planes passing through the center of the sphere), if no..
Placing four books into the backpack : A student has seven books that she would like to place in her backpack. However, there is room for only four books. Regardless of the arrangement, how many ways are there of placing four books into the backpack?
Describe the frame-stewart algorithm for moving the disks : Involve the reve's puzzle, the variation of the tower of hanoi puzzle with four pegs and n disks. Before presenting these exercises, we describe the Frame-Stewart algorithm for moving the disks from peg 1 to peg 4 so that no disk is ever on top of..
How tall do you predict their son to be : If a mother and father are 73 and 80 inches tall, respectively, how tall do you predict their son to be? Explain why this is called "regression toward the mean."
What is the break-even point for the upgrades : What is the break-even point for the upgrades? That is, what price would be charged for both upgrades to make their cost and performance improvement equal?
Representative of all us adults : In a sample of 1100 U.S. adults,172dine out at a restaurant more than once per week. Two U.S. adults are selected at random from the population of all U.S. adults without replacement. Assuming the sample is representative of all U.S. adults, comp..
What is meant by the term government-by-proxy : Can you develop a 400 word essay that answers the question: Examine what is meant by the term government-by-proxy, how it was used during Hurricane Katrina, and some of the pros and cons of this system

Reviews

Write a Review

Mathematics Questions & Answers

  What is the decay constant

After 10 hours of radiation decay 50mg of a substance remains. After 15 hours 30mg remained.

  Find an equation of the tangent line to the curve

find an equation of the tangent linr to the curve at the given point y=2x^3-5x at the point (-1,3)

  What is the probability that a freshman selected at random

What is the probability that a freshman selected at random from this group is enrolled in each of the following? (Enter your answers to three decimal places.)

  Find probability that both defective lights will be found

The probability that both defective lights will be found, A box contains two defective Christmas tree lights that have been inadvertently mixed with eight non-defective lights. If the lights are selected one at a time without replacement

  Find the speed and direction of the air currents

A plane has an airspeed of 195 miles per hour and a heading of 20°. The ground speed of the plane is 207 miles per hour, and its true course is in the direction of 36°. Find the speed and direction of the air currents, assuming they are constants.

  Calculating probabilities

What is the total defect rate? I came up with 6%. A randomly selected product was defective. What is the probability that it came from Plant A?

  How many 8-in by 10-in prints will this amount cover

Construction A bu ildi ng foundation has a length of 82 ft and a perimeter of 292 ft. What is the width? (H int: Peri meter = 2 X length + 2 X width.)

  What was the total price of the dress

Maria went to the ladies fashion store and bought a dress on sale at 120.95. the dress reduced an extra 15% off What was the total price of the dress including 12% tax?

  Find the number of miles in each route

Carol sells two types of PC monitors.  She sold a total of 14 monitors last month.  One model sells for $280 and the other sells for $435.  If the total sales for the 14 monitors was $5,160, determine the number of each type of monitor she sold.

  Find how many milliliters of each that should be mixed

A Chemist needs 100 milliliters of a 76% solution but has only 55% and 85% solutions available. Find how many milliliters of each that should me mixed to get the desired soultion?

  Define cauchy sequences

Math 104: Homework 3. Let (sn) and (tn) be Cauchy sequences defined on R, and let (un) be a sequence defined as un = asn + btn for all n, where a, b ∈ R. By using the definition of a Cauchy sequence only, without assuming that limits of (sn) and (tn)..

  Use these equations to compute p and a

Write down 2 equations to compute a and P, one when t=2 and the other when t= 6.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd