Skip to content

Commit a3861d2

Browse files
committed
s/##/#/ so I can debug with Halp.
1 parent 87b49f5 commit a3861d2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

search.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def search(self, problem):
126126
abstract
127127

128128
#______________________________________________________________________________
129-
## Uninformed Search algorithms
129+
# Uninformed Search algorithms
130130

131131
def tree_search(problem, frontier):
132132
"""Search through the successors of a problem to find a goal.
@@ -234,7 +234,7 @@ def f(n):
234234
return best_first_graph_search(problem, f)
235235

236236
#______________________________________________________________________________
237-
## Other search algorithms
237+
# Other search algorithms
238238

239239
def recursive_best_first_search(problem, h=None):
240240
"[Fig. 3.26]"
@@ -558,8 +558,8 @@ def goal_test(self, state):
558558
for col in range(len(state)))
559559

560560
#______________________________________________________________________________
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.
563563

564564
ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
565565

@@ -575,8 +575,8 @@ def random_boggle(n=4):
575575
random.shuffle(cubes)
576576
return map(random.choice, cubes)
577577

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
580580

581581
boyan_best = list('RSTCSDEIAEGNLRPEATESMSSID')
582582

@@ -743,7 +743,7 @@ def mutate_boggle(board):
743743

744744
#______________________________________________________________________________
745745

746-
## Code to compare searchers on various problems.
746+
# Code to compare searchers on various problems.
747747

748748
class InstrumentedProblem(Problem):
749749
"""Delegates to a problem, and keeps statistics."""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy