Solving the Gridlock Game
Not having read the entire thread, this seems awfully similar to the 15 puzzle (sliding number puzzle). That can be solved with a search algorithm with the heuristic being the manhattan distance that each block needs to move to its appropriate spot. In this case, if I understand correctly, we only have one block that we are concerned with getting to a goal state. Therefore, the heuristic is how many moves it would take to get to the goal if there were no other obstacles.
Coincidentally just read about this problem recently in the book "Evolved to Win" http://www.moshesipper.com/etw/.
Apparently its quite a hard puzzle to solve. The book gives the most recent best efforts based on genetic programming.
Chapter 10 is pertinant
Apparently its quite a hard puzzle to solve. The book gives the most recent best efforts based on genetic programming.
Chapter 10 is pertinant
This is an ancient thread.
Though I'm not surprised its a lot harder to come up with a good heuristic for this puzzle then the 15slide puzzle.
Since the efficiency of the search depend _a_lot_ on the heuristic.
You want one with a good resolution so as few states as possible have the same heuristic.
If you only check the distance of the blue piece, you will have very many states that have the same heuristic.
This will reduce the A* search to resemble a simple brute force breadth first search.
Though I'm not surprised its a lot harder to come up with a good heuristic for this puzzle then the 15slide puzzle.
Since the efficiency of the search depend _a_lot_ on the heuristic.
You want one with a good resolution so as few states as possible have the same heuristic.
If you only check the distance of the blue piece, you will have very many states that have the same heuristic.
This will reduce the A* search to resemble a simple brute force breadth first search.
This is an ancient thread.
Holy hell... you aren't kidding. I may need to smite someone for necro'ing this thing.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement