Viewing posts for the category Omarine User's Manual

I Ching Algorithm: mutation

Review binary sequence
Applying The hexagram space theorem, we use convolution with the following parameters:
Len_in = 22; Len_Out = 6
len_w = 7; stride = 3
Filter = [1/7, 1/7, 1/7, 1/7, 1/7, 1/7, 1/7]
The six binary segments in the extracted window are
1010101 0101000 1000000 0000111 0111100 1100100
Output is a 6-element vector [4/7,  2/7,  1/7,  3/7,  4/7,  3/7]
Applying The theorem of problem space representation We get a 6-bit binary sequence
We have two 3-bit subsequence
100 010
Upper hexagram is CHẤN, lower hexagram is ĐOÀI, the double hexagram is LÔI TRẠCH QUY MUỘI

I Ching Algorithm: The hexagram space theorem

Data Mining
There is another type of hexagram that we have not analyzed yet, which is the support hexagram. It is a double hexagram that carries information that supports the master hexagram. Currently, the support hexagram has not been applied in the I Ching Algorithm but will be added if needed.
The support hexagram extracts data from the master hexagram to get supporting knowledge. This is a data mining procedure. We return to the example of the master hexagram HỎA THIÊN ĐẠI HỮU

I Ching Algorithm: Philosophy and method

In genetic algorithms, a population of rabbits is depicted to illustrate evolution. The rabbits must adapt to the environment, must be smarter and more agile to avoid being eaten by foxes. The ones that survived began to breed, which included smart and agile ones that escaped fox hunting, but there were also some slow and stupid rabbits who survived just for the sake of luck. So different situations happen: some fast rabbits have babies with fast rabbits, some fast rabbits with slow rabbits, some smart rabbits with stupid rabbits, ... etc.
The genetic algorithm implements a completely random reproduction mechanism, which leads to the possibility that the population cannot evolve, the algorithm does not converge to the global optimal. That's because random is not natural. All growth of things have rules.

I Ching Algorithm are intended to replace genetic algorithms and will become completion evolutionary algorithm. Everything has a couple. Boys and girls love each other because of vibration, getting married is through understanding, even if arranged by parents, there is a certain correspondence. It is very rare for a smart person to marry a dull person. Above all, true couple happiness is determined by whether the marriage is good or evil. Nowadays, many people consider boys and girls suitable for their age before deciding to get married. That is the law of the universe. Knowing the destiny of heaven is to find good to avoid evil. Everything is like that, every time in heaven and earth, it is like that.

I Ching Algorithm therefore selects only hexagrams of good to evolve the population, ensuring two goals: fast and correct. Correct evolution means that the result of the problem is the globally optimal solution.

The concepts
The algorithm maintains a population of individuals. Each individual is a vector of elements. The individual is represented by a chromosome, an element that is a gene of a chromosome, in genetics language. Populations evolve by reproduction and selection over generations. The two basic operations for reproduction are chromosomal hybridization and gene mutation (similar to the way the problem is posed in a genetic algorithm, but with a different method).
When the spawning operation meets a good hexagram, the child is born and is included in the population. On the contrary, if the hexagram is evil, it does not apply.
The object hexagram be helpful for the jubject hexagram is good, the objec thexagram and the jubject hexagram are equal is good, the  subject hexagram be harmful for the object hexagram is also good.
The object hexagram be harmful for the jubject hexagram is evil.
The master hexagram be good the variable hexagram be evil means the former is good the later is evil, is evil.
The master hexagram be evil the variable hexagram be good means the former is evil the later is good, is good.
The master hexagram be good the variable hexagram be good means the former is good the later is good also, is very good.
 (if applying probability, the probability of choosing is 100%). Unlike genetic algorithms that only select individuals according to fitness, a dominant individual will become a superindividual leading to a local minima risk.
I Ching Algorithm taking the very good hexagram with 100% probability will improve the fitness of the population while always ensuring the overall picture.

The theorem of problem space representation
Every problem, including binary and numerical optimization, can be represented as binary sequences.

I Ching Algorithm: Illustrate the prediction of the trigrams by divination of name

Once we know how to calculate the number of strokes in the name, we apply it to the case of a girl, whose full name is
Last name: PHẠM = 2+3+3+4+1 = 13
Padding last name: BĂNG = 3+5+3+3 = 14
First name: NGỌC = 3+3+1+1+1 = 9
Family fortune: 13+14 = 27
Name fortune: 9
Total fortune: 27+9 = 36

I Ching Algorithm: Calculate the number of strokes in the name

Starting from this article we will go to the main part, which is the theoretical basis of the algorithm. The I Ching Algorithm introduced here is the latest evolution algorithm in the global scope and also the first evolutionary algorithm in the 21st century when our species is throbbing with the world of AI.
The core idea of the algorithm is to apply the laws of the universe to the process of reproduction and selection. This introduces general knowledge into evolution ensuring that the algorithm definitely converges instead of running the risk of falling into an infinite loop due to random selection and reproduction as has been demonstrated for classical Genetic Algorithms of the last century.

In the previous articles I could not translate the content into English because there are too many terms describing Eastern philosophy and cosmology. The rest is mainly confined to the technical scope, so I try to be bilingual, but inevitably there are places where the meaning is not clear. In this case, if there are English phrases that are not in the dictionary, please help correct them in the comments or email, otherwise we suggest them as new English terms.

For an introduction to the algorithm, let's look at a familiar problem, which is name prediction. See how a person's name affects the client's life according to the laws of the universe? Analysis of the trigrams in fortune telling is an illustration of all numerical problems using the rule of the trigrams in the I Ching Algorithm.

We know that every abnormal phenomenon has a cause and obeys its laws of motion. What we call Random is something we don't know yet. Obviously what we don't know is huge. However, over thousands of years of history, humans have generalized the law of the universe so that today we can apply it to initialize data with machine learning to solve non-trivial artificial intelligence problems. We don't know when the COVID-19 pandemic will end, so why don't we start from the immutable law "When the rain stops, the sun has to rise".
That is the main meaning of the I Ching Algorithm.

In geometry there are three projections of three-dimensional space. These are vertical view, side view and flat view. Any projection carries information about the shape of the object. Roughly, so is the law of the universe, each phenomenon reflects an aspect of the nature of things. But unlike physical phenomena, the universe is represented in an infinite dimensional space that is not linearly independent. That means we either don't see it, or just an induciable root information phenomenon (refer to decision tree) can cover the whole problem.