An open API service indexing awesome lists of open source software.

https://github.com/dkealvaro/infinite-monkey-theorem

Watch monkeys randomly smash keyboards until they accidentally write "Hello World" . A genetic algorithm simulates evolution in Java
https://github.com/dkealvaro/infinite-monkey-theorem

evolutionary-algorithms genetic-algorithm java object-oriented-programming

Last synced: 3 months ago
JSON representation

Watch monkeys randomly smash keyboards until they accidentally write "Hello World" . A genetic algorithm simulates evolution in Java

Awesome Lists containing this project

README

          

# Infinite-Monkey-Theorem


monkey

## Overview
In this assignment, we created a genetic algorithm that simulates a simplified version of the infinite monkey theorem. It tries to evolve a random set of strings to a desired sentence, in this case `"Hello World"`.

We implemented all of our code in Java, using object-oriented programming principles and concepts of populations and genetics.

The goal of this assignment is to have a better understanding of how natural selection works through programming.

### Running the Program
Simply run the class `Practical2` and you will see how many generations it takes to evolve the population to the desired sentence.

---


Made with ❤️ and evolutionary algorithms