Chapter 86: What is an algorithm?

86.

Hearing Cheng Li say this, the faces of the old man and the great elder became a little strange.

Even Fang Xiaochun, who was standing on the side, looked at Cheng Li twice more on his expressionless face.

Accidentally broke through? Can this breakthrough be careless?

Rao is a well-informed Yuan Infant Cultivator like the Great Elder, and he also has an expression that you are teasing me.

The old man carefully swept Cheng Li a few times with his divine sense.

The strength of the Great Perfection of the Jindan Stage Divine Consciousness easily probed Cheng Li inside and out, and he did sense the high-level aura of the Qi Refining Period from Cheng Li's body, and he could even see the nine spiral arms at the core of Cheng Li's dantian.

"You...... If I'm not mistaken, your kid just awakened the spiritual root 5 days ago, and was promoted to the middle level of the Qi Refining Stage 3 days ago, and then you told me that you will become a high level of the Qi Refining Stage today?"

Cheng Li came to this world on June 3rd, awakened the spiritual root on June 6th, and was promoted to the middle level of the Qi refining period because of an epiphany in the yin-yang arithmetic competition on June 8th.

And today is June 11th, speaking of which Cheng Li came to this world, 8 days have passed unconsciously.

"Ahem, it's old, you remember it very clearly. Cheng Li touched his head and said embarrassedly.

"Clear, can it not be clear? Everything you kid does is so exaggerated!" said the old man to Cheng Li, not to mention the spittle, Xingzi directly sprayed Cheng Li's face, causing Cheng Li to keep wiping his face.

"The last time you were promoted, it was because of an epiphany, which is understandable. And what about you this time? Don't tell me you've had another epiphany. ”

Cheng Li wiped his face and said, "I didn't have an epiphany this time, I just cultivated normally, and I broke through unconsciously." I think maybe because I was already a foundation stage cultivator before, and now I'm just starting to cultivate from scratch, which is equivalent to restoring the nature of cultivation, so I can cultivate relatively quickly. ”

Only then did everyone remember that Cheng Li had said in the council hall before that he was a monk in the foundation building period, but after he was involved in the fog storm, he didn't know what disaster he encountered, and his spiritual root was shattered, and his cultivation was lost.

Few people present believed Cheng Li's rhetoric.

But at this time, in the face of the fact that Cheng Li has been promoted to two levels in 5 days, there seems to be no more convincing reason than this.

"Okay, now that the big war is coming, it's good if you can improve your cultivation a little more. ”

The Great Elder didn't want to elaborate on Cheng Li, nor did he delve into it, everyone had their own secrets, not to mention that a foreign person like Cheng Li was full of countless mysteries. Now the Great Elder and the Reckoning Elder have turned a blind eye to Cheng Li, so they have also turned a blind eye.

"Okay, okay, let's not talk about these boring things, let's discuss it first, and wait for the plan to crack the underlying spirit stone. ”

It's a technical controller, and he quickly shifted his attention to the technical level.

"Wait a minute, these 100,000 B-level calculators will be connected with 300 forest-level calculators, 2,000 forest-level calculators, 10,000 tree-level calculators, and 300,000 vine-level calculators. The old man introduced.

"How to make such a large number of calculators work together is the main problem we have now. ”

Cheng Li thought for a moment and said, "I can design an algorithm to coordinate and collaborate. As long as all the Type B calculators are calculated according to this algorithm, it should be fine. ”

"What's that?" said the old man with a confused expression.

"Huh?" said the change of haircut stupidly, "You don't know the algorithm yet?"

"I don't know. ”

"Then how did you originally plan to make the calculators connect in parallel to crack the underlying spirit stone?" Cheng Li said strangely.

You know, if logic circuits are the hardware foundation for computers to calculate, they are the flesh and blood of computers. Then the algorithm is the soul of the computer.

Such an important thing, the veterans who specialize in yin-yang arithmetic on Qingling Island don't even know?

The old man said as a matter of course: "The calculator made by the underlying spirit stone will have a special one on it that is specially used to connect with other calculators, this belongs to the general socket, as long as they are connected with crystal wires, many calculators can be connected in series for collaborative operations." There will naturally be some kind of mechanism inside the calculator that we don't understand, so that all the calculators become a whole and perform cooperative calculations. ”

"Okay, it's this kind of metaphysical logic again," Cheng Li said weakly in his heart, "Ah? What is their principle? Who cares, as long as it can be used." The principle is that the avenue is untouchable, why do you want to do so much. We just need to feel with our hearts and accept the gift of heaven. ”

After Cheng Li came to this world, he found that most cultivators had such a mentality. They're used to knowing it and not knowing why. Metaphysics is to be unclear, so if metaphysics can be known to the principle, dissect everything, and put it clearly in front of everyone, is it still metaphysics?

From this point of view, these cultivators obviously do not have the spirit of "learning from things" as the ancient Chinese sages said.

As a person who has been influenced by the modernization of the earth, Cheng Li advocates getting to the bottom of things. If Cheng Li encounters an event, or something novel, if he doesn't figure out the principle of it, Cheng Li will feel very uncomfortable and a little obsessive-compulsive.

Because of this, Cheng Li has a strong self-learning ability and is also very knowledgeable, because when he sees something he doesn't understand, he will ask and think. And now this has become Cheng Li's biggest capital.

"The unclear mechanism that you don't know is actually an algorithm. ”

In a responsible manner, Cheng Li still explained to the old man and the elder.

"In simple terms, an algorithm is any well-defined computational process that takes some value or set as input and produces some value or set as output. In this way, an algorithm is a series of computational processes that convert inputs into outputs. ”

The old man suddenly realized: "Oh, I see, in fact, the algorithm is how to use the calculator to solve the problem. The algorithm is actually the spell of yin-yang arithmetic!"

Regarding the understanding of the old man, Cheng Li was also noncommittal: "That's right, it can be understood in this way."

"An algorithm is a way to get an algorithm to solve a specific problem, and the calculator itself really only does addition. Many of the problems we actually face are complex and cannot be solved by simple addition, subtraction, multiplication and division.

"So we need to have algorithms that can decompose a very complex problem, decompose the conditions, and finally translate it into a machine language that the computer can understand, and turn it into the smallest unit that can be calculated with countless simple additions, subtractions, multiplication and division, so that the computer can calculate the result we want and output it. ”

Algorithms can be said to be the soul of modern computers, as well as the soul of programming.

For example, regardless of the programming language, the most important compiler is an incomparably large set of algorithms.

Through the design of algorithms, computers can help us solve various practical problems and achieve so many complicated functions. For example, in search, data analysis and processing, communication, networking, sorting, link analysis, artificial intelligence, data compression, data encryption, ...... and most of the common electronic devices in modern times, the reason why they have so many functions is that they are supported by a variety of algorithms.

Many people don't understand how computers that only know computing can achieve such diverse functions, but in fact, they don't understand the role of algorithms.

For example, the reason why Cheng Li can use the B-type calculator to optimize the exercises is because he designed a simple algorithm.

This algorithm lists the requirements listed by Cheng Li, such as the number of pulse rings, the conditional judgment of the dantian key, and the requirements for how many times the spiritual power flow appears in the attribute code, and transforms these logical judgment conditions that can be understood by human thinking into a calculation process that the computer can understand through the algorithm, so that the calculation can be carried out and the output result can be output.

If there is no such algorithm design, no matter how many calculators Cheng Li is given, he will not be able to use the calculator to calculate the results he wants and help him solve the problems he faces.

After Cheng Li explained to the old man for a long time, the old man finally understood the importance of the algorithm.

Then he asked, "So how do you design an algorithm?"