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
- Host: GitHub
- URL: https://github.com/dkealvaro/infinite-monkey-theorem
- Owner: DKeAlvaro
- Created: 2021-11-18T19:25:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T23:05:02.000Z (8 months ago)
- Last Synced: 2025-06-02T01:15:38.662Z (4 months ago)
- Topics: evolutionary-algorithms, genetic-algorithm, java, object-oriented-programming
- Language: Java
- Homepage:
- Size: 1.39 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Infinite-Monkey-Theorem
![]()
## 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