Chapter 66: Write an Algorithm
66.
"This experiment was divided into three groups, control group, experimental group 1, and experimental group 2. ”
"In the control group, it still passed through the No. 1 vein ring, and then through the No. 2 vein ring. ”
"Experimental group 1, through the 1-A ring, and then through the 2nd ring. ”
"Experimental group 2, through the 1-B ring, and then through the 2nd pulse. ”
According to the plan, Cheng Li passed through the No. 2 vein ring according to the three streams of spiritual power according to the three routes, and then recorded all the data of the changes before and after.
"Well, the results are in. ”
"In the control group, the data before entering the No. 2 ring were: 00000000100000000000111111110111, and after entering the 00010000100000000000111101110111. ”
"Experimental group 1 ......"
"Experimental group 2......"
"Through the comparison of the data before and after entering the No. 2 vein ring with the 3 groups of spiritual power flows, it can be found. ”
"Regardless of the control group, experimental group 1, and experimental group 2, there is a fixed pattern in the data changes before and after entering the No. 2 pulse ring. ”
"The 3 groups of spiritual power flows, after entering the No. 2 vein ring, all reversed the 4th Yin Yang Spirit Son with the 25th Yin Yang Spirit Son. ”
"This can be seen as a fixed change in the flow of spiritual power in the No. 2 vein. However, because it is only a reversal of the yin and yang spirits of different digits, the final change of the result will be affected by the previous pulse ring. But the process of change is fixed. ”
"Fortunately, the process of change is fixed, otherwise the amount of calculation would be astronomical. But even if it is fixed, with so many meridian rings, the amount of computation required to calculate the shortest optimal route is staggering. ”
"We still need to do more experiments to determine the fixed changes of all the pulse rings, so that we can carry out the next calculation. ”
As a result, Cheng Li began to devote himself to the great cause of experiments, along with one experiment after another and comparison.
After two hours, Cheng Li finally determined the fixed change formula of the 518 vein rings of the Qingling Tuna Method.
Looking at the fixed change of several pages written in the small notebook, Cheng Li couldn't help wiping the fine sweat on his forehead.
Each of the 518 fixed variations is different.
Some of the pulse rings are to reverse a certain yin and yang spirit son, which is the simplest.
Complex, there is a reversal of the number of digits of the complex number.
For the more complex veins, several steps were also carried out to change the position, and it took several experiments to find the law of its change.
Therefore, completing these 518 fixed and changing records is also an extremely energy-consuming thing for Cheng Li.
Moreover, only Cheng Li can record the fixed change formula so clearly, others can't see the internal structure of the spiritual power flow, and it is impossible to record the fixed change of each pulse ring so simply and clearly.
Therefore, only those Yuan Infant Stage cultivators who can perceive heaven and earth can reverse the internal changes of the spiritual power flow from some subtle external changes, so as to get a little bit of change information, and it is impossible to get a clear answer like Cheng Li.
"Finally, with these fixed variations, you can find the shortest route like playing a Rubik's Cube. ”
Anyone who has played the Rubik's Cube knows that there is an algorithm that can be calculated for the combination of the Rubik's Cube.
And the shuffled Rubik's Cube, to be arranged into the same color on each side, there is a minimum number of steps.
At this time, the 518 pulse ring changes in front of Cheng Li are like a Rubik's Cube with 518 pieces, and the only magic attribute key to be obtained in the end is like sorting out this 518 Rubik's Cube into a fixed color on each side, not more difficult than this, but to sort out that the color on each side is messy, but it is specific.
Moreover, compared to the different transformation methods of the Rubik's Cube, the optimization of the roadmap is more difficult because of his 518 fixed pulse ring fixed changes, each of which is different, so the amount of computation is greatly increased.
This is undoubtedly a super-complex giant Rubik's Cube.
It takes a complex algorithm to sort the 518 Rubik's cubes into the colors needed for the key.
If it were an ordinary person, it would certainly be impossible to complete such a complex calculation.
But fortunately, Cheng Li is a program architect, and he is a senior programmer who is good at mathematics and has a deep understanding of algorithms.
In the programming world, there is a saying that beginner programmers write code, and advanced programmers write algorithms.
As an architect, Cheng Li also has some research on algorithms.
So at this moment, after sorting out 518 variations, he started to calculate on another piece of paper, and he was designing an algorithm.
Such complex calculations are certainly impossible to use the human brain to calculate.
So he needs to use an arithmetic.
"Fortunately, I asked for a good spiritual power computer type B with the old man before, according to its speed of more than 1 million operations per second, it should be barely enough, right?"
After Cheng Li designed the algorithm on paper.
I started to enter data on the spiritual power computer.
The reason why he used the spiritual power computer he made instead of the calculator on Qingling Island.
This is because Cheng Li can't use the calculator on Qingling Island, because he didn't sense the yin and yang mouth.
After hundreds of years of exploration, the people of Qingling Island have sorted out 109 yin and yang mouths, which are equivalent to 109 mnemonic characters based on machine language, in other words, assembly language.
However, unlike programmers on Earth, who can program as long as they know the format specification of mnemonics.
The calculator on Qingling Island, the mnemonics on it, need to be used by someone who senses the corresponding yin and yang mouth.
Cheng Li felt that there was nothing more than this, so he still chose to use the spiritual power computer he made.
"Although I haven't had time to design some mnemonic for this psychic computer, in other words, I can only input pure binary data and program it in machine language. But at least I understand how it works, and it's much better than that mysterious calculator. ”
Cheng Li said as he began to enter data with great difficulty on the Tai Chi version.
He is now the equivalent of people on the planet in the 30s of the 20th century, when computers first appeared, and people were like this at that time, through some rudimentary control panels, directly input binary data to program.
Programming was inefficient at the time, and only math geniuses could program in machine language in such an environment.
Cheng Li can barely be regarded as a genius, and he has already studied relevant knowledge, so he can barely use machine language to do some relatively simple programming.
Fortunately, the algorithm that was designed in the end was not too complicated, and only involved four operations. Otherwise, with my level of machine language programming, I really can't write too complex programs. ”
Since the binary data is directly entered, great care needs to be taken, otherwise if a data is entered incorrectly, it will have to be re-entered entirely.
So Cheng Li is now cheering up 120,000 points, constantly pressing the black and white longboard on the Tai Chi version, and from time to time flipping the Tai Chi rotary button next to him.
Time passed like this, and after another two hours, Cheng Li finally wrote all the data into the spiritual power computer.
"Huhu, I'm tired, this thing of programming in machine language is really not done by people, this is too inefficient. No, I'll have to hurry up and find the core secret collection, at least I can program it in assembly language, which is much more efficient. ”
Cheng Li complained while pressing the Tai Chi rotary button.
"The operation begins!"