Showing posts with label Solving Techniques. Show all posts
Showing posts with label Solving Techniques. Show all posts

Friday, December 10, 2010

Reversing a Puzzle

It frequently happens that a puzzle consists of obtaining a given final position from a given initial position by making the smallest possible number of moves. One can then starts from the final position instead, and try to obtain the initial position by backward moves. If this has succeeded, all one has to do to get the solution of the original puzzle is to perform all moves in the reverse order and in the reverse direction. It is virtually certain that the new puzzle (the reversed one) will be simpler; otherwise the puzzle would surely have been presented in the reversed form. Hence, in most cases the reversal of the puzzle will produce a simplification.

Example:  Golf and Tennis
Three golf balls (the small circles) and two tennis balls (the larger circles) are placed in a row, with golf balls and tennis balls alternating (Fig-initial). Now with every move a golf ball and an adjacent tennis ball are moved as one whole, so that they remain adjacent. You are not allowed to reverse the balls; that is, you should not interchange the golf ball and the tennis ball. Moving the golf ball and the tennis ball is considered as one move. The problem is to get the golf balls and the tennis balls in a row in such a way that the golf balls are adjacent, and the tennis balls, too (Fig-final), in as few moves as possible.

 As rotation is not allowed, the new row is parallel to the original row. However, it is not necessary that the golf balls get to the left of the tennis balls, as in the Fig-final; as a matter of fact, if you have managed to get the golf balls on the left-hand side, all you have to do to get the golf balls to the right of the tennis balls is to perform the mirror image of each move. If it were allowable to interchange a golf ball and an adjacent tennis ball, the final position could be reached without trouble in three moves; the relative order of golf balls would not have changed, any more than that of the tennis balls. Since interchanging a golf ball and a tennis ball is forbidden, it is slightly more complicated to reach the final position.

Solution :
In the initial position, in which these are four cases where a golf ball and a tennis ball are adjacent, a large number of moves can be made. However, from the final position only two moves are possible. Therefore we reverse the puzzle and consider the final position as the initial one; in the new initial position we designate the golf balls and tennis balls as in Fig-num
In determining the moves, one should observe that there is no point in performing two consecutive moves with the same pair (because then one can combine both moves into one). Furthermore, one should take care that after every move there will be another pair (consisting of a golf ball and an adjacent tennis ball) with which a next move can be made. This leads to the following puzzle tree
­The dots indicate free positions. From the position 3. . 2A 1 B infinitely many moves are possible. You can place the pair 2 A (or I B) wherever you want, because in each case you can make another move with the pair IB (or 2A). However, we have only included those third moves (following 3 . . 2A 1 B) after which it is possible to make a fourth move which yields the desired final position (the original initial position). Hence, this can be done in four ways; in the first two moves these agree completely and for the rest they come to practically the same thing: the last two moves take the pairs 2 A and 1 B to the left of3, the order being unimportant, while it also makes no difference which of these pairs gets next to 3. The four ways are:
then the solution in question is


Wednesday, August 5, 2009

Solution : 7 Coin Puzzle

Pre-analysis :

To solve the puzzle, you might now start a division into cases. You notice, of course, that placing the first coin on 1 is all right, because all vertices play the same role; therefore, with regard to the first coin you do not need to make any division into cases (on 1, on 2, etc.). For the second coin, you have the seven possibilities of placing it on 2, on 3, . . . , on 8; it is irrelevant along which free line you move (when the vertex can still be occupied along two free lines, which is not possible for the vertices 4 and 6). If the second coin has also been placed, you can start to make assumptions about the third coin; it cannot always be placed in six ways, for if the second coin has been placed on 3, then the third coin cannot be placed on 6, because then neither of the lines 1-6 and 3-6 is free any more. Proceeding in this way, you will find all solutions after much sifting. If what you want is to present the puzzle to others, you can stop as soon as a solution has been found; you then note it down and learn it by heart. However, someone who proceeds thus has not seen through the puzzle, even if he finds a solution. Yet, one might say he has followed the directions about systematic trial and error. Indeed he has, and certainly there are still less efficient ways of solving the puzzle. Many a solver who looks for the solution starts pushing at random, and if, after much pushing, he has been able to place the seven coins, he has the bad luck of not remembering how he did it. This, of course, is puzzle solving of the worst kind.

Solution :

In order to understand the puzzle completely, you should observe that you ought to try to retain as many free lines as possible, and hence you should make as few lines as possible useless. Placing the first coin on 1 makes two lines useless: 1-4 and 1-6. Placing the second coin makes two more lines useless, except when this coin is placed on 4 or on 6. The correct continuation is, therefore: on 4 or on 6; for example, by occupying 4, only the line 4-7 is made useless, because 4-1 had already dropped out; the third coin should now be place
d on 6 or 7, etc. The coins should always be put on adjacent vertices (such as 3, 6, 1, 4); by adjacent vertices we mean vertices that are connected by a line, like 3 and 6.


The puzzle can be simplified considerably by observing that the eight lines form an octagon, and that the shape of the octagon reduces the complexity of puzzle to be an obvious easy one.





Post-analysis :

Now the seemingly complex problem is reduced to a very simple puzzle which everyone can solve instantly. It’s a very nice and handy technique of solving puzzles but it needs a lot of visualization and imagining capabilities.

Simplifying a Puzzle


The puzzle of the 7 coins : The object is to place 7 coins at 7 vertices out of the 8 vertices of the star. When placing any coin you should move it along a free line, and put it down at the end of that line. A line is called free if there is no coin at either of its endpoints.

Suppose that we first put a coin on 1 by moving it along the line 4-1, then a coin on 2, moving along 5-2, next a coin on 3 (along 6-3), a coin on 4 (along 7-4), and a coin on 5 (along 8-5). Then we are played out, because there is no free line left; hence, we can place only five of the seven coins in this way.