World's most popular travel blog for travel bloggers.

How to find the Branch factor of 8 Puzzle

, , No Comments
Problem Detail: 

I would like to know how to find the average branching factor for 8 puzzle.While referring Artificial Intelligence by George F Luger it says that:

Suppose,for example we wish to establish the branching factor of the 8-puzzle.We calculate the total number of possible moves: 2 from each corner for a total of 8 corner moves,3 from center of each side for a total of 12, and 4 from the center of the grid for a grand total of 24.This divided by 9,the different possible locations of the blank, gives an average branching factor of 2.67.

Why do we have to divide by 9(possible locations of the blank space) to get the average branching factor.I'm confused with how the blank space affects the branching factor?

Asked By : justin

Answered By : Jeffrey

The average branching factor is defined as :

On average, how many moves can you do, from a given position.

For some positions (corners 4x), you have 2 moves. For other positions (sides 4x), you have 3 moves. Lastly, for some position (centers 1x), you have 4 moves.

So, a weighted average gives you $$4 \cdot 2 + 4 \cdot 3 + 1 \cdot 4 \over 4 + 4 + 1$$

The blank space affects the branching factor of a given position by limiting the number of moves you can make.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/39534

0 comments:

Post a Comment

Let us know your responses and feedback