Skip to content

Commit 23b2421

Browse files
authored
Update Genetic-Algorithm.md
1 parent bb34314 commit 23b2421

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

md/Genetic-Algorithm.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ __function__ GENETIC-ALGORITHM(_population_, FITNESS\-FN) __returns__ an individ
77
    FITNESS\-FN, a function that measures the fitness of an individual
88

99
 __repeat__
10-
   _population_ ← [MUTATE(RECOMBINE(SELECT(2, _population_, FITNESS\-FN))) __for__ _i_ __in__ _population_]
10+
   _population_ ← [MUTATE(RECOMBINE(SELECT(2, _population_, FITNESS\-FN)))
11+
          __for__ _i_ __in__ _population_]
1112
 __until__ some individual is fit enough, or enough time has elapsed
1213
 __return__ the best individual in _population_, according to FITNESS\-FN
1314

0 commit comments

Comments
 (0)