Skip to content

Commit 213e084

Browse files
committed
2 parents a8e6f03 + 7e4b31a commit 213e084

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ In this algorithm, we have a initial state, we look for its neighbors and we cho
8383

8484
###### Steps:
8585
1. Put initial state into the current state
86-
2. While current state is not equal the goal state do
86+
2. While current state is not equal the goal state does
8787
3. Find all the neighbor of the current state
8888
4. Choose the neighbor with the best value
8989
5. Compare this neighbor's value with the current state's value
90-
6. If the value is better choose this neighbor as the current neighbor
91-
7. And loop
90+
6. If the value is better, choose this neighbor as the current neighbor
91+
e. Else, we are in the local maximum, and in our problem, the solution for this local maximum is to starting again from a random state.

0 commit comments

Comments
 (0)