0 votes
We want to solve the 8-puzzle, or generally, the n-puzzle (where n is m*m - 1 for some integer) problem.  How can we use B&B to solve this problem, and what are the lower/upper bounds?
in Branch & Bound by AlgoMeister (1.6k points)

2 Answers

0 votes
It seems not a good idea, because different action series may lead to the same state. And for BB to an 8-puzzle problem, there will be many nodes in the tree represent the same states for the chess board. This situation will not happen for a heuristic algorithm because it will not lead to a situation with the same state. In very special circumstances, like do some action "harmful" will lead to a good result, BB may work well. But very special, it can happen only in certain conflict situations.
by AlgoMeister (948 points)
0 votes

Solution Space:

Imagine a tree structure where each node represents the arrangement of the n-puzzle tiles. The root node represents the starting arrangement. Each node branches out into child nodes, representing the possible moves (in this case it is sliding a tile). Using this tree structure we explore all possible paths to reach the required arrangement of tiles(solution).

Bounds:

Lower Bound:  we use misplaced tile heuristic which calculates the number of tiles not in their correct goal positions. So we explore paths requiring least number of moves.

Upper Bound:  we use manhattan distance heuristic which calculates the sum of distances of misplaced tiles from their goal positions. This gives us the upper limit on remaining moves.

Estimated Cost will be the sum of the lower and upper bounds. Using this we can prioritize paths with fewer estimated moves to complete the puzzle.

3. Ordering Criteria:

Explore the nodes with lower estimated costs first so we complete puzzle with the minimum number of moves. Prune any node whose estimated cost exceeds the current best solution. This eliminates exploring paths that will require more moves than the best solution so far.

references: Analyzing the A* Search Heuristics with the Solutions of the 8-Puzzle
looking-into-k-puzzle-heuristics.
 

by AlgoMeister (584 points)
edited by

Related questions

+1 vote
1 answer
asked Apr 30, 2019 in Informed Search by Ruan XiangNing AlgoMeister (948 points)
+1 vote
2 answers
0 votes
3 answers
asked Mar 19, 2023 in Informed Search by Amrinder Arora AlgoMeister (1.6k points)
The Book: Analysis and Design of Algorithms | Presentations on Slideshare | Lecture Notes, etc
...