Esempio n. 1
0
  def isNewContents(n): return not T.searchNode(n, getValue)

  # Criterion for adding a particular configuration into the BFS queue: The set of jug-contents should never 
  # have happened so far.
  def shouldBeAdded(n): return isNewContents(n)
Esempio n. 2
0
 def isNewContents(n):
   return not T.searchNode(n, T.getContents)