How can the n-puzzle problem be solved efficiently?

  • Thread starter Thread starter Terilien
  • Start date Start date
  • Tags Tags
    Mathematics
Click For Summary

Homework Help Overview

The discussion revolves around the n-puzzle problem, specifically focusing on the challenge of determining the configuration that requires the most moves to return to the original state. Participants are exploring the implications of this problem within the context of combinatorial puzzles.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants are attempting to clarify the problem's requirements and its relation to known puzzles, such as the fifteen puzzle. Questions are raised about proving which configurations necessitate the greatest number of moves.

Discussion Status

The discussion is ongoing, with participants sharing insights about the complexity of the problem. Some guidance has been provided regarding the nature of the n-puzzle and its classification as NP-hard, indicating the challenges involved in finding optimal solutions.

Contextual Notes

There is some confusion regarding the problem's description, and participants are questioning the clarity of the original poster's explanation. The implications of NP-hardness are also being considered in the context of finding solutions.

Terilien
Messages
140
Reaction score
0
Given n marbles arrayed in a square with n+1 slots(slot n+1 being empty(labelled with numbers from 1 to n+1) you have to bring them all from their orginal positions to a position in whcih bringing them back would take the most moves. The rule is to move each marble to the adjacent square.


I'm really not sure as to how to solve it. I'm really just doing this because I saw it and the fact that i don't know the solution is killing me.


\
 
Physics news on Phys.org
It's kind of hard to understand what you're saying, but it seems like what you're describing is essentially the http://en.wikipedia.org/wiki/Fifteen_puzzle" .
 
Last edited by a moderator:
Yes its just that and I'd like to know how to prove what combination requires the greatest number of moves.
 
According to that page:

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

So I'm guessing there's no easy answer to your question.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
34
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K