Pythonの概念を理解するのに助けが必要です。
class TilePuzzleProblem(search.Problem):
""" This class is the class for the NxN - blanks tile puzzle problem """
def __init__(self, N, blanks, initial, goal):
""" Initialize """
search.Problem.__init__(self, initial, goal)
self.N = N
self.blanks = blanks
def successor(self, state):
""" Generate the successors of the given state. Returns a list of (move, successor) pairs"""
abstract
def h(self, node):
abstract
abstract
現在、関数の一部でコードがハングしているのですが、h(...)
どういうabstract
意味かわからないので、何が問題なのかわかりません。