Bots and Simulations > Evolution and Internet Sharing Sims

Its might really be good to have sexrepro

<< < (3/3)

Jez:
Can you program that into DB for us?

I don't mean to sound rude but it takes a lot of hard work from those that program DB to actually make things happen.

In the meantime those of us that play DB but are unable to make DB better have to pick and choose the things that might make a noticable difference. Unfortunately we can't sow our random seed (of theory) and see, we have to pick the seeds that might make the biggest difference. Given enough time we might be able to try everything but in the meantime what would be the best thing to try first?

Elite:
Simplest (and possibly best - opinions?) method of sexual reproduction would seem to be a crossover method
* Take the DNA from both bots, and store them side by side into a 2 by <however long (in bps) the longest DNA strand is> array
* Generate a random number from 1 to <however long the shortest DNA strand is minus one> and call it n
* Swap (I think to do a swap you might need an extra column in which to temporarily hold one of the values while you move the other across) the bps at position n of the DNA array, and then work upwards, swapping bps until you reach the top
* Repeat steps 2 and 3 an arbitrary, selected, bot-controllable or random number of times (or just the once)
* Pick one of the columns of the array at random, and store that into the offspring's DNA array1 4 2 6 3 5 7 3
5 7 3 5 6 8 8 2 1

n = 4

After one crossover

5 7 3 5 3 5 7 3
1 4 2 6 6 8 8 2 1

Numsgil:
Yeah, I think crossover is the way to go for DNA shuffling.  There are some tricks involved with being sure that DNAs that are similar but of different lengths don't screw things up.

I'd prefer simulating things on the microscopic level (have haploid and diploid as alternating generations, like fungi) over something like sex as we're more used to it.  Both shouldn't be too hard to work out though.

I'm working on a whole new DNA system that combines the flexibility of neural nets with the straightforwardness of the current DNA system.  Sexual reproduction should easily come from this without too much work.

Endy:

--- Quote ---I'd prefer simulating things on the microscopic level (have haploid and diploid as alternating generations, like fungi) over something like sex as we're more used to it. Both shouldn't be too hard to work out though.
--- End quote ---

Err... We're haploid for a brief, but important part of our lives.  

Maybe require a hardened tie before sexrepro can commence. This way bots can be at least somewhat choosy about whom they give their genes to. Otherwise they could do some gene theft and swipe another bot's dna.

Navigation

[0] Message Index

[*] Previous page

Go to full version