Slide 13
Slide 13 text
Solving 8-Puzzle with Hipster
8-Puzzle state space formulation example
States: 8-Puzzle represented as an array of numbers.
Actions: movements of the empty tile (RIGHT, LEFT, UP, DOWN).
Transitions: state × action → state’ (board with the tiles swapped).
Example: {5,4,0,7,2,6,8,1,3} × LEFT = {5,0,4,7,2,6,8,1,3}
Solution: minimal sequence of actions from initial to goal
16 de junio de 2014
12/26