Greedy search Algorithm - 3x3 slide puzzle