示例#1
0
 def  __init__(self, problem, priorityFunction):
     "priorityFunction (item) -> priority"
     self.priorityFunction = priorityFunction      # store the priority function
     PriorityQueue.__init__(self)        # super-class initializer
     self.problem = problem
示例#2
0
 def __init__(self, problem, priorityFunction):
     self.priorityFunction = priorityFunction
     PriorityQueue.__init__(self)
     self.problem = problem
示例#3
0
 def __init__(self, problem, priority):
     self.problem = problem
     self.priority = priority
     PriorityQueue.__init__(self)
示例#4
0
文件: search.py 项目: asqiriba/AI
 def __init__(self, problem, function):
     PriorityQueue.__init__(self)
     self.function = function
     self.problem = problem
示例#5
0
 def __init__(self,problem, priorityF):
     self.priorityF = priorityF
     PriorityQueue.__init__(self)
     self.problem = problem
示例#6
0
 def  __init__(self):
     PriorityQueue.__init__(self)
示例#7
0
 def __init__(self, problem, costFunction):
     "priorityFunction (item) -> priority"
     PriorityQueue.__init__(self)  # Pythonly re-use PriorityQueue class
     self.heuristic = costFunction  # store the heuristic/cost function
     self.problem = problem
示例#8
0
 def __init__(self, problem, priorityFunction):
     "priorityFunction (item) -> priority"
     self.priorityFunction = priorityFunction  # store the priority function
     PriorityQueue.__init__(self)
     self.problem = problem