domingo, 16 de outubro de 2016

Monkey Business: A Genetic Algorithm Model


Monkey Business illustrates the reproduction of the famous Shakespeare phrase "To be or not to be, that is the question!" by a simple genetic algorithm.  It was inspired by the American physical chemist Henry Bent regarding the 2nd Law of Thermodynamics: "At room temperature, for example, conversion of a single calorie of thermal energy completely into potential energy is a less likely event than the production of Shakespeare's complete works fifteen quadrillion times in succession without error by a tribe of wild monkeys punching randomly on a set of typewriters."   The model uses successive strings (phrases) from a random population without crossover but mutating, with a fixed probability to match the given phrase. Strings are kept or discarded using a fitness function as described in the documentation.

free download: Monkey Business