Directories | Web | Images | Groups | News | Shopping | Local

Enter your search keyword(s):

 



(formerly Encyclopedic directory)
Puzzles
Home / Top / Games / Puzzles See also:
Related articles

Edit | Discuss Article

N-puzzle

The n-puzzle is known in various versions, including the 8 puzzle, the 15 puzzle, and with various names. It is a sliding puzzle that consists of a grid of numbered squares with one square missing, and the labels on the squares jumbled up. If the grid is 3×3, the puzzle is called the 8-puzzle or 9-puzzle. If the grid is 4×4, the puzzle is called the 15-puzzle or 16-puzzle. The goal of the puzzle is to un-jumble the squares by only making moves which slide squares into the empty space, in turn revealing another empty space in the position of the moved piece.

The n-puzzle is a classical problem for modelling algorithms involving heuristics. Commonly used heuristics for this problem include counting the number of misplaced tiles and finding the sum of the Manhattan distances between each block and its position in the goal configuration. Note that both are admissible, i.e., they never overestimate the number of moves left, which ensures optimality for certain search algorithms such as A*.

It is possible to use parity arguments to show that some starting positions for the n-puzzle are impossible to resolve, no matter how many moves are made. This is done by considering a function of the tile configuration that is invariant under any valid move, and then using this to partition the space of all possible labelled states into equivalence classes of reachable and unreachable states.

Table of contents
1 How Sam Loyd made his fortune
2 See Also
3 External links

How Sam Loyd made his fortune

In its most famous version, the fifteen puzzle is a game in which 15 of the 16 squares of a 4×4 frame are filled with numbered sliding pieces, leaving one space in which to slide one piece at a time. The object is to slide the 15 pieces into numerical order.

Thus, the goal is to produce this configuration:

If the pieces 14 and 15 are exchanged, resulting in the following initial configuration:
then the puzzle is not soluble.

The "hook" in the fifteen puzzle is that there are two distinct sets of positions which can be assembled from the pieces with different parity, and there is no way of moving between them using the allowed moves, as they preserve parity. The parity in this context (the invariant) is the parity (odd or even) of the number of pairs of pieces in reverse order plus the row number of the empty square. For the order of the 15 pieces consider line 2 after line 1, etc., like words on a page.

Thus an even permutation of the order of the 15 pieces can only be obtained if the empty square is not moved or moved two rows, and an odd permutation of the order of the 15 pieces can only be obtained if the empty square is moved one or three rows.

By contrast, note that considering the parity of permutations of all 16 squares (15 pieces plus empty square) is not meaningful here, because it changes with every move.

This allowed Sam Loyd, who invented the puzzle in the 1870s, to offer a prize of $1000 which could never be claimed, fueling the popularity of the game. The game became a craze in both the USA and in Europe.

For larger versions of the fifteen puzzle, the problem of finding a solution is easy. The problem of finding the shortest solution is NP-hard.

See Also

External links


Source | Copyright
Webmasters: Add your website here:

Readers: Edit | Discuss Listings

Rec.puzzles Archive Locations
Directory of archive locations for North America, Europe and Asia.
http://xraysgi.ims.uconn.edu/others.html

Logicville
Educational puzzles, brain teasers, mathematical recreations and word games. A resource for anagrams, cryptograms, alphametics, word puzzles, logic problems, doublets, tangrams, chess, and math quizzes.
http://www.logicville.com/

Tim's World of Puzzles
Information on World Puzzle Championships including links to sample word and logic puzzles.
http://www.home.zonnet.nl/kostunix/

Puzzle Choice
Crosswords, wordsearches, cryptograms, quizzes, wordplay and other interactive and printable puzzles and games.
http://www.puzzlechoice.com

Puzzle Space
Information about language and culture independent puzzles and logic games.
http://www.geocities.com/puzzlespace/

Cool Puzzles
Offers solutions to many puzzles.
http://www.coolpuzzles.com/

The Puzzle Page
Collection of puzzles, brain teasers, mind benders, logic problems, cryptograms, patterns, and enigmas.
http://www.geocities.com/oosterwal/puzzle.htm

VNC: Volker-Noelle.com
Collection of brain teasers, logic puzzles, paradoxes and mathematical riddles.
http://www.volker-noelle.com/iq/index.shtml

Nemesis Factor Game Solutions
Includes gameplay hints and complete walkthroughs and solutions for each of the 100 levels of Hasbro's Nemesis Factor electronic handheld game.
http://home.earthlink.net/~partymix/

Perplexing Problems
Logic problems submitted by users in categories including mathematics, words, and mysteries.
http://www.perplexingproblems.bravehost.com/

Puzzle Monster
Original trivia, logic, visual and word puzzles.
http://www.triviamonster.com/

Adventure Puzzles
Serial adventures, continuing story and puzzles building towards a final puzzle and solution.
http://www.questexperiences.com/quest2/PortsToAdventure/AdventurePuzzles/default.asp

The Substitute Teacher: Puzzles and other Diversions
Printable puzzles and other diversions to help substitute teachers involve their temporary students in mind stretching activities.
http://www.subhelp.com/

Holiday Puzzles
Collection of original puzzles developed over the years to celebrate the winter holidays.
http://www.radix.net/~erewhon/puzl/index.html

MyCharades.com
Includes charades, riddles, and enigmas.
http://www.mycharades.com/

Variety Games
Shareware software programs available to create custom crossword and word searches.
http://www.variety-games.com/

Rainier Beer Bottlecap Puzzles
The answers to the bottlecap rebus style puzzles found on Rainier Beer and Pearl Beer caps.
http://www.geocities.com/shabber_1/rainier.html

The Game
A puzzle hunt run every year at Stanford.
http://zonker.stanford.edu/~snitch/game/

The Puppeteer's Cosmic Puzzle
Pictographic puzzle microcosm of old and new playing cards, poems, games and lore. New suits: the zodiac, solar system, evolution, human family, ancient elements, astronomical basis of the calendar and compass.
http://www.cosmicpuzzle.com/



Help build the largest human-edited directory on the web.
 Submit a Site - Open Directory Project (modified) - Become an Editor

Modified contents copyright 2008. All rights reserved.