GAR - Genetic Algorithm Riddle based
We have 5 persons. All of them have different hobbies, professions, vehicles, etc. The objective is to find the person who is the Merchant. But you have to follow this rules:
- Who goes in a Motorbike is an Accountant
- The person who arrives earlier than everybody uses a car.
- Santiago arrives one hour later than the person who watches comedy.
- Sonia arrives one hour and a half after the person who is a police.
- The person who watches comedy is a professor.
- The merchant goes to work after the person who goes in a car.
- The person who goes in a van arrives one hour later than Juan.
- Who arrives at 8.00 hs arrives at an average hour from everyone.
- The person who watches movies arrives later than everybody.
- The person who goes in a bicycle arrives 30 minutes after Sonia.
- Who watches Soccer arrives at 8.30hs at work.
- Who watches a soap opera arrives 1 hour earlier than Antonella.
- Omar arrives at 7hs.
- Who watches a series goes to work before the person who goes in a bus.
- The person who is an engineer goes to work one hour after the person who is an Accountant.
This is a simple solution to understand how genetic algorithm works. Sometimes we can get to the answer and other times we can't. It depends on the hyper-parameters and the random initialization (and maybe some mistakes I have made or not hehe).