Question

In: Computer Science

Describe an algorithm that could be used to solve the Tee Puzzle. In this puzzle, the...

Describe an algorithm that could be used to solve the Tee Puzzle. In this puzzle, the board consists of a 5 sided triangle full of golf tees. One hole is empty. You can jump a tee over an adjacent tee as long as it lands into an empty hole. The jumped tee is removed. The goal is to have one tee remaining.

Solutions

Expert Solution

Algorithm : one approach (there can be many)

  1. Start with position 1 empty. This would be the top point of the triangle.
  2. Make the diamond shape. This basic pattern can be repeated throughout the board, helping you win the game.
    1. Take the peg in position 4 and jump it over the peg in position 2. It will then be in position 1.
    2. Use the peg in position 6 to jump position 5. It will now be in position 4.
    3. Use the peg in position 1 to jump position 3. It will now be in position 6.
    4. These moves will give you the diamond base.
  3. Make two groups of pegs. As you'll see, the next set of moves will divide the pegs into two groups, one on each side of the triangle.
    1. Move the peg in position 7 to position 2, jumping position 4.
    2. Move peg 13 to position 4.
    3. Next, move peg 10 to position 8.
    4. You should now have two groups of pegs, with 5 pegs on the left side and 3 on the right.
  4. Separate the triangle in two. This next set of steps will make a curved line across the triangle, dividing it into two parts.
    1. Move peg 2 to position 7. Then take that same peg and move it to position 9.
    2. Next, move peg 15 to position 13.
  5. Move your last pegs to the bottom row. These moves will leave you with three final pegs, all in the bottom row.
    1. Move peg 12 into position 14.
    2. Next move peg 6 to position 13.
    3. You should now just have three pegs left in the bottom row.
  6. Complete the last moves. Move peg 14 to position 12. Then make the last move, peg 11 to position 13.
  7. Win the game. The ending peg should be in the 13th hole. Completed.

( Optional : Two more approaches described pictorially in short-

1.

2.

)


Related Solutions

Explain how search trees may be used to solve the missionaries and cannibals puzzle, and present...
Explain how search trees may be used to solve the missionaries and cannibals puzzle, and present a solution to this puzzle
Describe an algorithm to solve the variant of the Towers of Hanoi in as few moves...
Describe an algorithm to solve the variant of the Towers of Hanoi in as few moves as possible. Prove that your algorithm is correct. Initially, all the n disks are on peg 1, and you need to move the disks to peg 2. You are not allowed to put a bigger disk on top of a smaller disk. 1. Suppose you are forbidden to move any disk directly between peg 1 and peg 2, and every move must involve (the...
It is known that the mean time to solve the puzzle in healthy control children is...
It is known that the mean time to solve the puzzle in healthy control children is 60 seconds. Carry out the Wilcoxon signed-rank test on these data to test the null hypothesis that the mean time to solve the puzzle for children with NF1 is the same as for healthy controls. a) Calculate the value of the test statistic and give the approximate normal distribution of the test statistic under the null hypothesis. b) Calculate the p-value for the test...
If STATCRUNCH can be used to solve this could someone explain that as well please and...
If STATCRUNCH can be used to solve this could someone explain that as well please and thank you!! In a recent study on world​ happiness, participants were asked to evaluate their current lives on a scale from 0 to​ 10, where 0 represents the worst possible life and 10 represents the best possible life. The mean response was 5.2 with a standard deviation of 2.4. ​(a) What response represents the 85th ​percentile? ​(b) What response represents the 60th ​percentile? ​(c)...
In taking a business into Singapore What technologies are emerging that could be used to solve...
In taking a business into Singapore What technologies are emerging that could be used to solve the problem? What are the costs associated with it? What cost level would be needed to solve the problem?
How could a root finding algorithm like the bisection method be used to approximate a value...
How could a root finding algorithm like the bisection method be used to approximate a value such as sqrt(3). In other words how can a root finding algorithm find an x value with a given y value? Write a script to illustrate this usage scenario. Compare the output of your script with the result from a calculator. You must use matlab!! using a while loop.
Describe a polynomial time algorithm to solve following problem Input: A boolean function in CNF such...
Describe a polynomial time algorithm to solve following problem Input: A boolean function in CNF such that each clause has exactly three literals. Output: An assignment of the variables such that each clause has all TRUE literals or all FALSE literals.
CHECK + THE = TIRES Solve this puzzle using constraint satisfaction and draw the constraint graph.
CHECK + THE = TIRES Solve this puzzle using constraint satisfaction and draw the constraint graph.
Briefly explain the " consumption puzzle" . What solutions have been proposed to solve it and...
Briefly explain the " consumption puzzle" . What solutions have been proposed to solve it and to what extent they have been successful ?. DISCUSS.
Giving appropriate examples; describe the following puzzles of international finance Home bias puzzle Exchange rates puzzle...
Giving appropriate examples; describe the following puzzles of international finance Home bias puzzle Exchange rates puzzle Equity premium puzzle
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT