Skip to content

Commit 751a286

Browse files
alanolinorvig
authored andcommitted
Minor fix in typo (#779)
1 parent 5285177 commit 751a286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

search.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@
143143
"source": [
144144
"The `Node` class has nine methods.\n",
145145
"\n",
146-
"* `__init__(self, state, parent, action, path_cost)` : This method creates a node. `parent` represents the the node that this is a successor of and `action` is the action required to get from the parent node to this node. `path_cost` is the cost to reach current node from parent node.\n",
146+
"* `__init__(self, state, parent, action, path_cost)` : This method creates a node. `parent` represents the node that this is a successor of and `action` is the action required to get from the parent node to this node. `path_cost` is the cost to reach current node from parent node.\n",
147147
"\n",
148148
"* `__repr__(self)` : This returns the state of this node.\n",
149149
"\n",
150150
"* `__lt__(self, node)` : Given a `node`, this method returns `True` if the state of current node is less than the state of the `node`. Otherwise it returns `False`.\n",
151151
"\n",
152-
"* `expand(self, problem)` : This methods lists all the neighbouring(reachable in one step) nodes of current node. \n",
152+
"* `expand(self, problem)` : This method lists all the neighbouring(reachable in one step) nodes of current node. \n",
153153
"\n",
154-
"* `child_node(self, problem, action)` : Given an `action`, this methods returns the immediate neighbour that can be reached with that `action`.\n",
154+
"* `child_node(self, problem, action)` : Given an `action`, this method returns the immediate neighbour that can be reached with that `action`.\n",
155155
"\n",
156156
"* `solution(self)` : This returns the sequence of actions required to reach this node from the root node. \n",
157157
"\n",

0 commit comments

Comments
 (0)