Biology Inspired Computing Work in C#


Introduction

Biology teaches us a set of rules defined by nature that have evolved over millions of years. So, if you want to put intelligence into something simplifying the world around you into basic rules can give you a big head start.

Genetic Algorithms

By selecting attractive parents, more attractive children are born. So, if you cross bread better solutions to a given problem, you can find a better solution.

Using this, I decided to demonstrate this principal visually using c#.net. I thought i had lost the plot half way through this but it came together really well in the end.

1st Generation

Generation 2, Getting closer

Generation 3

Generation 3

5 Cycles

10 Cycles

After 20 cycles, they have almost settled at the best location

After 20 cycles, they have almost settled at the best location

As you can see, the spiders have moved to the optimum coordinates.


Similar Articles