{'fraction_non_alphanumeric': 0.035254831116220506, 'fraction_numerical': 0.013138446378715717, 'mean_word_length': 4.87395498392283, 'pattern_counts': {'":': 0, '<': 1, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Should Evolution Necessarily be Egolution?

In the article I study the evolutionary adaptivity of two simple population models, based on either altruistic or egoistic law of energy exchange. The computational experiments show the convincing advantage of the altruists, which brings us to a small discussion about genetic algorithms and extraterrestrial life.


Introduction
The origins and potential of self-developing complex processes is one of the most challenging topics today and will become one of the most important branches of science tomorrow. As a part of Earth's biosphere we are familiar in practice with only one such a process -evolution. Although the evolution of biosphere on Earth may be studied in detail, there are no other known examples of natural self-developing complexity, which leaves us with our imagination and artificial life models on the way to the essence of autonomous systems' organization and complication. One of the recently proposed instruments to cope with the lack of heterogeneous examples is radical reimplementation [13], where experience in some vague subject is variegated by achieving the key aims using the most unusual means. This article is focused on the radical reimplementation of selfish motive in evolution.
Evolution is usually considered as a process driven by individual reproduction gain. Even altruistic phenomena like reciprocal altruism [6,26] or eusociality [19] with its mechanisms of inclusive fitness [8] often thought to be evolved on the basis of "selfish gene" ground. There are many works devoted to the appearance of altruistic phenomena in egoistic world (see, e.g. [1,4,7,9,12,14,27,31]). But I am familiar with only one, where altruism is considered as a preliminary inherent property of artificial life system, and the resulting model competes with the egoistic-based model in efficiency [5]. The current paper continues this competition: altruistic-and selfish-based models with simple homogeneous population structure are exposed to the evolution process in a changing environment with the purpose to explore which strategy provides better adaptation and survival. Compared with the well-studied approach of evolutionary games [3,10,24,29], in this study both altruistic and selfish strategies struggle not against each other, but against natural obstacles lurking for a population in mutation-selection process. Experiments with "homogeneous" populations whose organisms adhere to one single strategy allow to estimate the adaptation flexibility of each strategy and to come closer to the answer to the question "is egoism a necessary attribute of evolution." The model populations consist of moving colored circles, where circle's radius is energy and RGB-color is 3-genes genome (Fig. 1). Each time two circles meet they exchange energy in either altruistic (the larger one gives a half of its energy to the smaller one) or selfish (the larger strips a half of the smaller's energy) way. If an organism becomes large enough, it disappears giving birth to 2 new organisms. The probability of such replication depends on the organism's fitness -the correspondence between the current "environmental conditions" (which may be visualized as the color of the background field and may be thought of as the current "target genome") and the organism's genome. Successive changes of the background color forces the populations to move through the "labyrinth of adaptation." In classification of intriguing work [22], the altruistic populations show high cooperation and low conflict, which corresponds to the type "organism"; in case of the selfish behavior, the elements of the populations show low cooperation and high conflict corresponding to a "group of competitors." The first question under experimental investigation is plain survival of the populations equipped with one of the two strategies in a rapidly and roughly changing environment (stress-test). The populations that succeed to beget consequently all the 8 given target genomes without stumbling across genetic bottlenecks [17,18] or stasis [25] are then compared by speed of adaptation.
The second question is how long a population can stay in a constant environment (and thus "overspecialize") while preserving enough genetic variety to be able to survive and adapt when the environment finally radically changes (idyll-test). The results of the conducted experiments suggest that the altruistic populations are much more flexible in the process of artificial evolution.

Model description
The population structure and evolution process models are rather simple and resemble bacterial life in a changing milieu.
Organisms. Each organism O is represented by a circle, whose radius rad(O) corresponds to"energy," and 3-component RGB-color  (1) The speed-vector length 2 is just a practical compromise: its increase intensifies evolution speed (which is a plus as it allows to conduct more computational experiments), but also enhances the chance of contact inaccuracy (the situation where two small organisms moving discretely can just step over each other without contact).
Field. The organisms live inside a discrete plane square field 1, 100 × 1, 100 with rather common toric topology, which means that if an organism moves behind a border it appears out of the opposite border with the same speed vector (see Figure  1).
Population. Each population initially consists of 100 organisms, and this is the maximum allowed number of organisms in the population. There are three important parameters that characterize each population: • mature size (ms) an organism that reaches this radius may divide in 2 newbie organisms (unless the population limit is already reached); • die size (ds) is the radius falling below which an organism dies; • newbie size (ns) is the radius of any newborn organism.
It is evident that any viable population has to receive more energy, than it spends. In the following experiments, the energy input is provided by two simple conventions: • ns > ds -an evident survival constraint; • ns ≤ ms ≤ 2ns emulates a reasonable energy input to the model (analog of plentiful food; large newbie size corresponds to the imaginary situation where an ancestor lets his two descendants participate in social life only when they are grown to some extent).
Contact. Generally, the organisms are transparent for each other except for the "touch" moment. Two organisms are considered to be in touch at the current step if: 1) the distance between their centers does not exceed the sum of their radii, 2) the condition (2) was not true at the previous step.
Energy exchange. When two organisms O 1 and O 2 touch each other they exchange energy in either altruistic or selfish way. In an altruistic exchange, the larger organism gives a half of its energy to the smaller one: in a selfish exchange vice versa the larger organism takes a half of the energy of the smaller one: Fission. If the size of an organism O exceeds the mature size ms and the number of the organisms in the population is less than 100, the organism gets a chance to split into two equivalent newbie organisms (O is replaced with The probability p to split reflects the organism's "fitness" and is inversely related to the "distance" between the organism's genome (r(O), g(O), b(O)) and the current target genome (r 0 , g 0 , b 0 ) (which may be considered as the best possible genome for the "current environment," see the next subsection for the details): The newborn organisms inherit some of the parent's properties: The angles α(O 1 ) and α(O 2 ) are selected uniformly from [0, 2π), the size is predefined at rad(O 1 ) = rad(O 2 ) = ns. The genomes of the newborn organisms are formed by a random mutation: where i ∈ {1, 2} and δ i r , δ i g , δ i b are uniformly selected from the integer interval −5, 5.
which may be visualized as the vertices of the RGB-color cube (see Figure 2). The environment (target genome) changes right after the population "adapts to the current environment." In the following experiments it means that the fitness function (5) switches to the next target genome as soon as the population produces an organism, whose genome is equal to the current target genome.
Success criterion. All the studied populations were subjected to the following two main tests, revealing the ability to survive in unpredictable process of evolution: (i) stress-test, how fast, manoeuvrable and stable a population is in a stressful environment; formally we will measure it by the number of the steps needed to reach the 8-th target genome and by the minimum number of different genomes in the population during its evolution (genetic diversity); (ii) idyll-test, how long a population is able to continue the "overspecialization" in constant conditions after the first target genome is reached while preserving the ability (i.e., a sufficient diversity) to turn the evolution toward a radically different target genome and successfully beget it.
It is impossible to follow the destiny of a population forever; fortunately it is not necessary since the population discloses its potential relatively fast. The following are the empiric rules that were used in the computational experiments to cull the "unpromising" populations.
• Rule 10 6 . A population must reach the last 8-th target genome in 10 6 steps. On the one hand, this is long enough for many populations to succeed, on the other hand, the experiments show that those that can not do it have a little chance to succeed even in 10 8 steps. • Rule 10 4 . A population must reach its first target genome in 10 4 steps. This is an instrument to cull the populations that evolve too slow (since it is a relatively easy task to get to the first target genome starting with the high genetic diversity of the initial uniform state). Practice shows that if a population cannot meet Rule 10 4 , it has a disappearing chance to meet the above Rule 10 6 . • Rule 3. A population must contain more than 3 organisms at each step. This is an instrument to cull the populations that succumb to degeneration. In practice, if the number of organisms gets down to 3 or less, it is highly probable that the abundance would not recover; such populations have a poor chance to meet the first Rule 10 6 .

Experiments
Stress-test. In the first test each population was adapting to the environment, which changed each time a population succeeded in begetting an "ideal" genome for the current environment. In accordance with the survival and energy delivery constraints from Section 2.3, the following parameters were used to produce the experiment populations: ms, ds, ns ∈ 0, 10; ns > ds; ns < ms ≤ 2ns.
For each tuple of the parameters' values (ms, ds, ns), 100 independent computational experiments were conducted. During each experiment, a population consequently pursued 8 target genomes starting from a random genetic state. In case at least one of the rules (Rule 10 6 , Rule 10 4 or Rule 3) was broken, the experiment was terminated, the abort reason was recorded and the computation proceeded to the next experiment starting with a new random state. It appeared convenient to distinguish 6 categories of the populations selected according to their results in the stress-test: (i) hopeless quickly (before 10 4 steps) fall down to less than 4 organisms without begetting any target genomes; (ii) degenerating beget one target genome and fall down to less than 4 organisms within 10 4 steps; (iii) dilatory preserve genetic diversity, but do not beget even the first target genome in 10 4 steps; (iv) fallen beget the first target genome before the step 10 4 , but fall down to less than 4 organisms in the following evolution before the step 10 6 ; Selfish Altruistic (v) procrastinating beget the first target genome before the step 10 4 and preserve genetic diversity up to the step 10 6 , but do not beget all 8 target genomes in the given 10 6 steps; (vi) dexterous succeeded in the stress-test.
A population with the parameters (ms, ds, ns) was assigned one of the above categories x ∈ 1, 6 if 1) more than 50% of the 100 experiments with these parameters resulted in the category x or, if there is no such a category, 2) x was the lowest category, which contained at least 16% (≈ 100%/6 categories) of the results.
The outcome of the computational experiments is summarized in Fig. 4. Let me briefly comment on the distribution of the populations' parameters inside each of the above categories, after which we will pay more attention to the "dexterous" populations: (i) most of the selfish populations remain "hopeless"; however, the altruistic "hopeless" populations form a considerable but not dominant part of all the altruists; (ii) all the selfish "degenerating" populations lie on the line projection where the newbie size is equal to the mature size (this is the maximum newbie size allowed by the prudent energy input constraint ns ≤ ms ≤ 2ns); the altruistic "degenerating" populations follow the same tendency, but with more dispersion, in addition they agglomerate in the area with large mature size; (iii) the "dilatory" selfish populations have a very low die size (ds), which on one hand gives them the chance to preserve the rich initial genetic diversity, but, on the other hand, deprives them of the chance to transform under mutation-selection process towards the target genomes; the altruistic "dilatory" populations are subjects to the same shift, but they are more numerous and widespread in the parameter space; (iv) both altruistic and selfish "fallen" populations are rather an exception than a rule; the selfish "fallen" possess the die size equal to 1, which to all appearance is the minimal value needed to remain evolving and preserve a reasonable number of individuals simultaneously; the altruistic "fallen" have more scattered parameters; (v) the experiments revealed no "procrastinating" populations at all, which deepens the separation of the successful "dexterous" populations from all the other types; (vi) there were no selfish populations among "dexterous"; the altruistic "dexterous" populations meet the natural condition ms > ds and lie mostly in the plane ns = ms, but there are some exceptions in case of low die size; there are more altruistic "dexterous" populations with high mature size, which (regardless of the evident explanation ms > ds) resembles the K-strategy of biological reproduction ( [20]).
The results of the stress-test with the "dexterous" altruistic populations including the number of steps taken to beget all 8 target genomes and the minimum genetic variety during the evolution process are given in Tab Fig. 4: The connection between "speed" and "stability" of evolution for the "dexterous" populations (based on Table 1) In the stress-test the populations tried to adapt to periodically changing environment. The idyll-test puts the populations in the contrary situation: they live

27
"fallen" "succeeder" 2 25 "fallen" "succeeder" 1 26 in an unchanging environment for a relatively long time, upon which the target genome changes drastically and a "relaxed" overspecialized population has to turn around to a new, totally different genetic purpose. Only the populations that proved to be "dexterous" in the stress-test (and those are all altruistic) were allowed for the idyll-test.
In each idyll-test a population has to beget its first target genome (0, 0, 0) in 10 4 steps, following which the environment remains constant (the target genome is not switching) for either 10 4 or 10 5 steps. After such a "peaceful age," the target genome changes to the opposite one, (255, 255, 255), and the population has to beget the new target genome before the step 10 6 . The idyll-test experiments revealed only two categories of populations: "fallen" (see the description in the previous section) and "succeeders" (those who passed the idyll-test).
Just as the stress-test, each idyll-test with the parameters (ms, ds, ns) and under the constraints (8) was repeated 100 times. The result of such a series of experiments was similarly either the category that appeared in more than 50% of the series or (if it does not exist) the lowest category having at least 16% of the experiments.
Almost all the altruistic "dexterous" populations that passed the idyll-test independently of the duration of the "peaceful age." The "fallen" populations are as rare in the idyll-test as they were in the stress-test (see Tab. 2: two in the experiment with 10 4 idyllic steps and one with 10 5 ), which makes them look rather like an accidental bias than an informative result.

Conclusion
There are two hypotheses I would like to discuss in connection with the obtained results: one practical and one philosophical. The practical one concerns the evolutionary computation [2,15]. Preservation of genetic diversity and ability to escape from overspecialization are very important features for any evolutionary computation approach. As we have seen, altruism-based evolutionary strategies may prove to be more adaptive and resistant to the common traps of evolution process, which means that altruism-based genetic algorithms are worth a further extensive study (already started in e.g. [16,21,23,30]).
The second -philosophical -speculation is devoted to as much as the life in our Universe. Considering the obtained experimental results, it is not unreasonable to assume that life with altruistic energy exchange is able to survive, adapt and develop in an unpredictable environment for longer periods compared to the selfish-based life. If we suppose that there are planets in the Universe, where life emerged in altruistic form, than group selection (at planetary level) will favor them as more resistant to the caprices of Nature. The life on such "altruistic-biosphere" planets should exist for longer periods and thus may become intelligent more often on average in comparison with the selfish life. The longer intelligent life exists -the higher the chances for it to transform into a civilization of space travelers. Which brings us to the final hypothesis: the highly developed extraterrestrial intelligent life we could encounter has more chances to be based on the altruistic principles (see more on this topic in [11,28]).