@@ -126,7 +126,7 @@ def search(self, problem):
126
126
abstract
127
127
128
128
#______________________________________________________________________________
129
- ## Uninformed Search algorithms
129
+ # Uninformed Search algorithms
130
130
131
131
def tree_search (problem , frontier ):
132
132
"""Search through the successors of a problem to find a goal.
@@ -234,7 +234,7 @@ def f(n):
234
234
return best_first_graph_search (problem , f )
235
235
236
236
#______________________________________________________________________________
237
- ## Other search algorithms
237
+ # Other search algorithms
238
238
239
239
def recursive_best_first_search (problem , h = None ):
240
240
"[Fig. 3.26]"
@@ -558,8 +558,8 @@ def goal_test(self, state):
558
558
for col in range (len (state )))
559
559
560
560
#______________________________________________________________________________
561
- ## Inverse Boggle: Search for a high-scoring Boggle board. A good domain for
562
- ## iterative-repair and related search techniques, as suggested by Justin Boyan.
561
+ # Inverse Boggle: Search for a high-scoring Boggle board. A good domain for
562
+ # iterative-repair and related search techniques, as suggested by Justin Boyan.
563
563
564
564
ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
565
565
@@ -575,8 +575,8 @@ def random_boggle(n=4):
575
575
random .shuffle (cubes )
576
576
return map (random .choice , cubes )
577
577
578
- ## The best 5x5 board found by Boyan, with our word list this board scores
579
- ## 2274 words, for a score of 9837
578
+ # The best 5x5 board found by Boyan, with our word list this board scores
579
+ # 2274 words, for a score of 9837
580
580
581
581
boyan_best = list ('RSTCSDEIAEGNLRPEATESMSSID' )
582
582
@@ -743,7 +743,7 @@ def mutate_boggle(board):
743
743
744
744
#______________________________________________________________________________
745
745
746
- ## Code to compare searchers on various problems.
746
+ # Code to compare searchers on various problems.
747
747
748
748
class InstrumentedProblem (Problem ):
749
749
"""Delegates to a problem, and keeps statistics."""
0 commit comments