The Fifteen puzzle (2024)

The Fifteen puzzle (1)The Fifteen Puzzle has been around for over a hundred years, and has been acraze for almost every generation. The basic form is of a 4 by 4 grid usually made with sliding tiles in a tray. There are 15 tiles numbered 1 to 15 and the 16th place is empty as shown. Before play begins the tiles are randomly scrambled by sliding to any starting position. The object of the game is then to unscramble the tiles (by sliding, not lifting them) to get them into consecutive order, with the space in the bottom right again. (This will bereferred to as the home position.)

Sam Loyd was the man who invented the 14-15 or Boss puzzle. This was aversion where the starting position was very similar to the home positionexcept that the 14 and 15 were inverted. In the early 1870's he offered a $1000reward to anyone who could solve it, which set off "fifteen fever". However no-one claimed the prize for the simple reason that it is not solvable! The reason shall dealt with later.

Permutations, Interchanges And Parity

It can be seen that the puzzle has 15 tiles and a space distributed over16 squares. The number of different arrangements of tiles can be calculated: the first square has 16 possible numbers/space to choosefrom, the 2nd will have 15 possibilities...etc so there are 16 factorial possiblearrangements. This is over 20 billion different arrangements. It shall be seenhowever that only 16!/2 of these are solvable.

To understand the principles involved, first look at a simpler case of permutations (or arrangements) of a 2 by 2 grid, with 3 tiles; 1,2,3.
The Fifteen puzzle (2) The Fifteen puzzle (3)The Fifteen puzzle (4)These are 3 of the arrangements of the grid, with the first picture being the home state; 9 other arrangements can be found by cycling the 1 round to a new position and then rearranging the 2 and 3. Of course there are 4! = 24 possible arrangements, but the other 12 can not be reached by simple sliding moves. They would be found by performing an interchange; ie where one tile is moved to the position of another tile or the space, which inturn is moved somewhere else, possibly to the first tile's original position. The Fifteen puzzle (5) (ie swapping two of the tiles). One can see that the following arrangement is not possible from the home state by following legal moves (ie sliding not lifting):

Cycles can be used to describe the permutations of objects through interchanges. Lifting a tile up is not a legal operation, but a cycle of interchanges maydescribe a set of legal sliding moves in a shorter form. For example (3 1 2 *) would be the cycle from
The Fifteen puzzle (6)to The Fifteen puzzle (7), where * is the empty space. Of course one can see that this is the same as (2 * 3 1) . In a similar way, (2 * 1) would be the permutation of
The Fifteen puzzle (8) to The Fifteen puzzle (9). As the 3 is not mentioned, there is an implication that it is left in its originalposition. Thus the impossible arrangement seen previously would have a cyclefrom the home state of the form (2 3) , which can easily beenseen to be an interchange that is not a legal permutation. It shall be seen later how to tell generally if a particular permutation is legal for a particular starting state.

Cycles can be strung together to get more permutations, which will be especiallyuseful for the 4 by 4 grid later on. If for example (2 * 1) is performed to the home state then (1 2 3 *) , as long as each individual cycle is legal for the previous state, the combination of them will also be possible. Permutations describe the interchanges between tiles and so combiningthem will not necessarily produce permutations that can be performed by slidingtiles in those orders; a cycle could represent an interchange that could be possibleby another, longer cycle of sliding permutations.
One can differentiate between types of cycles by breaking them up into single cycles. For example (2 1 3 *) can be written (2 1)(2 3)(2 *) which is applied by following each numberthrough the cycles. This called an odd permutation as it has an odd number ofproducts. In the same way (2 * 1)=(2 *)(2 1) is even. Notice that the length of an odd permutation is an even number, and vice versa. Combining two permutations of the same type is even, but combining an odd and even permutation will be odd.

The Fifteen puzzle (10)These same rules can be applied to the 4 by 4 grid, by permutations of squaresor rectangles of any size. One can tell that the solution will need to be an evenpermutation if the empty space is left in its home slot. (See following pictures andtext.) Indeed it can be said that if the empty space is originally on any of the green squares, the solution will be an even permutation, but if the space is on a white square, an odd permutation is needed. These can be described by parity; if there is a solution, one says the problem has even parity ie that the starting state has the same parity as the home state. This is why only half the possiblearrangements are solvable; half the time the problem has even parity, and half,odd parity.
One can see that this is true by looking at the home state:
The Fifteen puzzle (11)The Fifteen puzzle (12)The Fifteen puzzle (13)
By sliding the 12 down one permutation is performed (12 *)which is odd. To get back to the home state therefore the solution will be anodd permutation as the empty space was left on a white square. Similarly if thestarting state is (12 * 11) from the home state, one can tell that the solution is possible with an even permutation. In the same way one can look at any shuffled starting position:
The Fifteen puzzle (14)Here the permutations are
(1 11 10 9 2 3 4 7 12 13 8 * 6 15)(5 14)
which is a combination of two odd permutations so is even. The empty square is foundon a green position so one can say that this problem is solvable.


The Fifteen puzzle (15)

The 14-15 Puzzle and other problems

Now Loyd's 14-15 puzzle shall be examined: this is the starting state whichlooks like this:
Even though this appears to be so close to the final solution, one can tell fromthe cycle that it is not solvable, because (14 15) is an odd permutation and the space on a green position, ie odd parity.
The Fifteen puzzle (16)
Other starting states that can be looked at are the effect of rotating the grid clockwise 90 degrees. The permutation is
(1 4 * 13)(2 8 15 9)(3 12 14 5)(6 7 11 10)
which is a combination of 4 odd permutations which is itself even. The empty space is on a white position so this problem (including the problem of having the tiles on their sides) is unsolvable.
The Fifteen puzzle (17)
If one takes the problem of having the empty space at the beginning rather than at the end, the permutation cycle is
(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 *)
which is an odd permutation with the space on a green position so it is an unsolvable problem.

Finding Solutions-Simple

Of course after working out whether a particular problem is solvable, it wouldthen be useful to be able to find a solution. One logical process to follow is toget the tiles in place in order, ie by getting the 1 into place, then the 2,3,4etc.The Fifteen puzzle (18) However one may quickly find that by placing the 3 in place, the 4 can notfit without disturbing the 3 again. From the work before, it is known that apermutation of (11 4) on the top right-hand 2 by 2grid is not legal by sliding so instead permutations of a 2 by 3 grid are used.
The Fifteen puzzle (19)The Fifteen puzzle (20)The Fifteen puzzle (21)The Fifteen puzzle (22)The Fifteen puzzle (23)
This is the same as a permutation of (4 10 6 *)(6 3 11 *)(11 * 4)(3 6 11 10 * 4)=(11 6 * 4).In a similar way, the 7 and 8 can be placed in the correct positions. The bottom two lineswill have similar problems; the 9 and 13 need to be in the right order thencycled round to their positions, and finally one is left with another 3 by 2grid with the 10 and 14 to be placed first like the 3 and 4, then thelast three rotated to get home!Of course it makes sense to think about the other numbers and where they should eventually end up, and so move them in thoseparticular directions.

The Fifteen puzzle (24)For the general case if a tile, B needs to get into a upper right corner (either of the grid, or previously positioned tiles) in the order A B at the top, the cycle of moves from this position is thus:
(A C B D E *)(D B C E *)(B A E C*) in terms of the legalslides.
These motions can then be used for any part of the problem in a corner,just mirror the permutation to fit the corner.

Finding Solutions-Fastest

Obviously trying to solve the problem like this is not the fastest (ie the onewith the least number of moves) as one tends to move some tiles in the wrong direction unnecessarily as the first ones are concentrated on individually.As one can see in arranging the corner piece, it is sometimes necessary to go backwards to be able to go forwards, but these motions ought to belimited where possible

The Fifteen puzzle (25)
A computer could be used to evaluate all possible solutions and then show the quickest one. It would look at all possible moves at each node- where there is a branching off of possible solutions. For example in the previous problem (shown again to the left), the starting position has a node of different 4 paths or branches; the 4, 9, 11 or 14 could be moved. If the 9 is chosen to be moved, the new node would have 3 branches, but the 9 would be discounted as it leads back to the original position.
One way of getting the computer to perform the search is to make itevaluate possibilities at each node, to pick one path and follow it until eitherthe home state is reached or a dead end. If a dead end is reached, the computer goesback to the last node and takes a different path. However, one can not be sure thatthis is the fastest, as it discards all other possibilities once it has found a solution. Instead the computer could examine all nodes that are one permutation fromthe starting position. If none of these are the solution they are expanded to nodes 2 single permutations away from the starting state, etc until the homestate is found, so this will be the shortest. This however is very complicatedand certainly not something a human could do easily. There are many sites onthe internet that have programs to find the quickest solution (see sources) soinstead the problem of whether a person can solve the fifteen puzzle in theshortest solution will be examined.The Fifteen puzzle (26)

One thing a human can do is to work out an heuristic or best fit- an estimate of the number of moves a tile would take to get from a particular position on thegrid to the home state. The heuristic really wants to be either optimistic or correct as it will show theminimum number of moves expected to get home. It is worked out by looking at the position of each tile in the starting state and calculating the number of moves it would take to get to its home place if the space were adjacent to it, in thedirection of home. In the example, the 1 would need 4 moves to get home (so the heuristic is 4), the 13 would need 3, the 3, 1 move. It is known that the heuristic calculated in this way is optimistic or accurate, because if the empty space were tothe left of its position now, the 13 could get to its home place in the heuristic's estimated number of moves. However as it is not, the heuristic would belarger as the tile can not be simply lifted up. The heuristic of a particular problem is just the sum of all the individual heuristics.

It would seem sensible to work out the total heuristic for a particular problemand then follow the path of best fit where the value of the heuristic decreases.For the example taken, the heuristic at the start would be 4 + 1 + 1 +...+ 3 + 3 + 3 = 36 for the tiles in chronologicalorder. To decrease the heuristic, the 9 or 14 could be moved, as they are the only twomoves that move the tile closer to its home position. Moving one tile in itshome direction decreases the value of the heuristic by one. A person can keeptrack of the moves made and where the corresponding best fit nodes are. When a dead end is reached, the person should go back to the last node and examine the other branches, until a solution is found. However in practice this does not workout. It was seen from the process of moving corner pieces into position that it is necessary to move tiles in what seems the wrong direction in order to solve the problem.

In conclusion, a human can combine both ways of solving the problem; through simple logical solving and by trying to move the tiles in the direction of best fit. In this way a solution will be found that will be reasonably short, andprobably shorter than any solution the person would have found by trial and error.Obviously it does not take into account the time needed to work out the heuristicat the start. Hopefully, understanding the principles used in the fifteen puzzlewould help a person understand the problem and to find the best way to go about achieving a solution, whether they want a solution that is fast in time or number ofmoves, or just to solve it for fun.

Sources:

W. W. Rouse Ball, Mathematical Recreations and Essays, Chapter XI Miscellaneousproblems, 10th ED. Macmillan and Co. 1937.
John Ewing and Czes Kosniowski, Puzzle It Out - Cubes, Groups and Puzzles,Cambridge University Press 1982.
www.geocities.com/dariuscooper/puzzle/
www.geocities.com/jaapsch/puzzles/fifteen.htm
mitglied.lycos.de/jkoeller/15puzzle.htm
MATH 308 Euclidean Geometry Project, 2002
Hazel Grant
The Fifteen puzzle (2024)
Top Articles
Exploring Property as an Asset Class: Why Real Estate is a Cornerstone Investment
Fix “Another device on the network is using your IP address”
Tattoo Shops Lansing Il
Global Foods Trading GmbH, Biebesheim a. Rhein
Missed Connections Inland Empire
Obor Guide Osrs
Toyota Campers For Sale Craigslist
Santa Clara College Confidential
Kent And Pelczar Obituaries
Nwi Police Blotter
Hallowed Sepulchre Instances & More
How do you mix essential oils with carrier oils?
Baseball-Reference Com
Aquatic Pets And Reptiles Photos
Es.cvs.com/Otchs/Devoted
Caliber Collision Burnsville
Dit is hoe de 130 nieuwe dubbele -deckers -treinen voor het land eruit zien
Craigslist Farm And Garden Cincinnati Ohio
Available Training - Acadis® Portal
Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
State HOF Adds 25 More Players
What Happened To Anna Citron Lansky
Sport-News heute – Schweiz & International | aktuell im Ticker
Aaa Saugus Ma Appointment
Daytonaskipthegames
Raz-Plus Literacy Essentials for PreK-6
Conscious Cloud Dispensary Photos
Barista Breast Expansion
What Equals 16
Idle Skilling Ascension
Horses For Sale In Tn Craigslist
Elanco Rebates.com 2022
Homewatch Caregivers Salary
3 Bedroom 1 Bath House For Sale
Roch Hodech Nissan 2023
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
The Land Book 9 Release Date 2023
Why Holly Gibney Is One of TV's Best Protagonists
Mars Petcare 2037 American Italian Way Columbia Sc
15 Best Things to Do in Roseville (CA) - The Crazy Tourist
Frommer's Philadelphia & the Amish Country (2007) (Frommer's Complete) - PDF Free Download
Complete List of Orange County Cities + Map (2024) — Orange County Insiders | Tips for locals & visitors
Craigslist/Nashville
Turok: Dinosaur Hunter
Sams Gas Price San Angelo
FactoryEye | Enabling data-driven smart manufacturing
Missed Connections Dayton Ohio
Google Flights Missoula
91 East Freeway Accident Today 2022
Www Extramovies Com
211475039
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 6432

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.