8 lines
206 B
Clojure
8 lines
206 B
Clojure
|
|
(def c 100) ;number of children in each generation
|
||
|
|
(def p 0.05) ;mutation probability
|
||
|
|
|
||
|
|
(def target "METHINKS IT IS LIKE A WEASEL")
|
||
|
|
(def tsize (count target))
|
||
|
|
|
||
|
|
(def alphabet " ABCDEFGHIJLKLMNOPQRSTUVWXYZ")
|