結果 : heuristic search code in python