Chapter 87: Do You Know Math?

87.

"To design an algorithm, we first need to pay attention to the three characteristics that a computer algorithm possesses. ”

"1. Poor. An algorithm must stop after an infinite number of steps, and an infinite algorithm is meaningless because no result can be obtained. ”

"2. Certainty. Each step of the algorithm should be clearly defined, and instructions should be free of ambiguity in any scenario. ”

"3. Validity. If an algorithm is designed to solve a problem, then it should solve the problem, and the use of pen and paper alone can prove that the algorithm is convergent. ”

After listening to this, the old man was aroused by curiosity and asked, "Then how to design it?"

Cheng Li scratched his head and said, "This problem is too big.

"Do you know calculus, can you do linear algebra?"

"Huh?" said the old man with a confused expression.

"These are some of the basics of arithmetic.

"In addition to these basics, if you want to design a variety of algorithms, you need to learn a variety of advanced arithmetic knowledge.

"For example, you need to know number theory, combinatorics, graph theory......

"For example, resource optimization models require operations research, and cryptographic algorithms require abstract algebra. ”

"Not to mention the more difficult algorithms such as image algorithms, artificial intelligence, machine learning, and so on, which include almost all the knowledge of basic and applied mathematics, such as: functional analysis, variational, cybernetics, differential equations, etc., ......"

"As for things like statistics and probability, they are essential knowledge for most algorithms. ”

"More advanced points, such as discrete mathematics, cohomology algebra, and topology, are also ...... that need to be learned."

"All in all, algorithm design is mathematics in the final analysis, and if you want to learn algorithm design, you have to learn mathematics well. ”

Cheng Li looked at the old man with a look full of superiority, with an expression that you were still tender.

And the elder, the great elder, and even Fang Xiaochun, at this moment, had a completely incomprehensible expression, but felt so powerful.

"This ...... This is all the content of yin-yang arithmetic?" asked the old man with some trepidation.

"To be precise, this is not the content of yin-yang arithmetic, but arithmetic! or mathematics!" Cheng Li said highly.

Regarding the knowledge of mathematics, Cheng Li has extremely strong confidence that he can beat anyone in this cultivation world in the field of mathematics.

After all, Cheng Li University is majoring in mathematics, and the elective is programming.

After graduating, because he was more interested in programming, he embarked on the road of no return as a programmer.

Because of the advantages of the mathematics major, Cheng Li has a deep research in algorithms, which also allows him to become a program architect for large projects at the age of only 25.

"Arithmetic...... Is this all the content of the inheritance above the Nine Heavens?" said the old man excitedly.

"That's right, this is the inheritance I received above the Nine Heavens, and now that time is pressing, the Great War is coming, and I don't have time to teach you. After this war, I'll teach you when I have time. Cheng Li said indifferently.

But I didn't want to, hearing Cheng Li say this, I almost knelt down directly to apprentice to the teacher.

"You, will you teach me? Do you mean really? You can really teach someone else about this kind of inheritance?"

"This ...... It's nothing, our Xuantian atmosphere is relatively open-minded, and we don't like to hide it. After all, collective wisdom is far beyond the reach of individuals. A civilization needs the collective power of countless individuals, not a single hero. ”

The Great Elder, who had been listening to the sidelines, suddenly realized something when he heard this: "These words are too profound, we cultivators have always admired the strength of the individual, and we pay attention to using our personal resources to go against the sky, and the road against the sky is destined to be lonely. I didn't expect you Xuantian to actually advocate the power of collective civilization? I can't believe that you are from a cultivation civilization. ”

Cheng Li's heart froze, and he secretly said that he was really an old fox, and his face said quietly: "Who said that cultivating true civilization can only rely on individuals." The environment above the Nine Heavens is cruel, far beyond your imagination. Under such oppression, every cultivator cannot survive independently, so we must rely on the power of collective civilization.

"Believe me, the productive forces of the masses of the people are far beyond your imagination, and once liberated, they will burst out with a force that shocks the heavens and the earth. What's more, cultivators like us?"

At this time, the old man shouted on the side: "Okay, don't talk about these imaginary things, Cheng Li, hurry up and design the algorithm, can you let me take a look at it on the side?" Even if I can't understand it, I want to feel it well. ”

Cheng Li smiled: "Of course you can, but this thing can't be learned by feeling, but you have to learn it step by step in a down-to-earth way." ”

The old man completely put down his figure, like a student, the chick pecked the rice and nodded.

This made the members of the Yin and Yang Society around them all stunned, and the eyes that looked at Cheng Li became more and more adoring for a while.

Fang Xiaochun, on the other hand, was completely expressionless, but the extremely strong longing in her eyes also showed that she had no intention of leaving at all.

Seeing this, Cheng Li did not waste time.

"So now, I'm going to design an algorithm to see how to connect the newly designed B-type calculator with the old one to work together.

"I need information on all the old calculators I have. ”

Without saying a word, with a wave of his big hand, a few orders went down, and immediately asked people to bring over all the old type calculators with different yin and yang mouths, and handed Cheng Li a scroll, which contained the functional descriptions of all the yin and yang mouths of the old type of calculators.

"This was originally the core information of Qingling Island, and others couldn't see it. But I'm making an exception for all of my information to open up to you now. The old man said very solemnly.

And Cheng Li unceremoniously took it and began to study it carefully.

Then the old man explained on the side.

"This yin-yang mouth is used to connect with other calculators, and the yin-yang mouth is used for data co-ordination and processing......

"There is also that Yin Yang Mouth, this is the Yin Yang Mouth that is specially used to crack the underlying spirit stone. As long as it is connected to the underlying spirit stone, the calculator will automatically perform the calculation in a way that does not know the principle, and reverse deduce the underlying spirit stone. However, in this process, it needs to be supported by an extremely terrifying amount of computing power......"

In the explanation of the old man, Cheng Li spent half a pillar of incense and read all the information on Yin and Yang.

After thinking about it in his head for a moment, he had a vague idea of a solution.

So he picked up a pen and paper, and kept writing, drawing, and drawing.

"Algorithms exist to solve problems, so an excellent algorithm must be efficient, and it is necessary to use existing resources as much as possible to carry out the optimal solution. ”

"Therefore, the yin and yang of the old type of calculator must be used, and the part of the reverse deduction of the underlying spirit stone will be handed over to the old type calculator, so that I don't have to study how to crack the underlying spirit stone, nor do I have to care about the operation principle of the underlying spirit stone.

"In this way, all I want to do is to connect 100,000 B-type calculators to the old ones, so that the B-type calculators can simply provide their own computing power.

"In this case, I need to design an algorithm that can be very simple. All you need is an algorithm that includes collaborative computing and resource orchestration. ”

Cheng Li began to write a bunch of completely incomprehensible symbols on the paper, and it seemed to the old man and others that Cheng Li was writing a heavenly book with words.

However, although everyone couldn't understand it, they still stared hard, and everyone seemed to want to understand something from this "book from heaven......