Hello, Mr. Major General

Chapter 1052: Her Mr. Huo is great

Views:

"Professor He, that's it... I spent all night on my computer last night, but I still couldn't find anything..." Gu Nianzhi was a little frustrated.

She had never been in this situation before.

He Zhichu coughed lightly and said to Gu Nianzhi: "Nianzhi, I want to ask you, are you familiar with the programming language Prolog?"

"Prolog? Programming-in-logic?" Gu Nianzhi responded quickly, "I know, but this programming language is not widely used and is still in the laboratory stage."

"Then do you know why it is not widely used?" He Zhichu inspired Gu Nianzhi's thinking as if giving a lecture.

"Prolog, also known as Programming-in-Logic, as the name suggests, is a programming language based on logic theory, which is a type of intelligent program. Existing computer hardware is limited and cannot support the large-scale use of this programming language. application, so the actual application is basically zero.”

"Yes, then how is it different from ordinary programming languages?" He Zhichu raised his eyes to look at the bright sunshine outside the window and squinted his eyes.

"Uh, is Professor He testing me?"

"Aren't you known as a genius computer expert? Let me see how well you master the basic knowledge." He Zhichu smiled lightly, lowered the curtains with his long and clean fingers, walked to his desk, sat down, and opened the Got the computer.

Gu Nianzhi chuckled and said, "Okay, that's how I understand it. In ordinary programming languages, programmers have an absolute dominant position. Line by line of his code is clear, and they are all instructions to the computer. And Prolog, for example, Logic programming language sets logical rules for the computer, and then allows the computer to judge how to proceed with the next step of the program based on the logical rules."

"For example, using ordinary programming language to let the computer calculate formulas, the programmer teaches the computer to multiply and divide first, and then to add and subtract. The computer performs calculations strictly in accordance with the calculation order set by the programmer. From this perspective, the computer executes the programmer's instructions , never goes wrong. The only thing that goes wrong is that the programmer wrote the wrong program."

"Prolog, a logic programming language, processes data according to logical rules. It is not a simple matter of adding, subtracting and then multiplying and dividing."

"The simplest logical relationship is this. Let's first assume that Xiaohong is a human being and Xiaoli is also a human being. They like each other. Then give the judgment rule: people who like each other are friends. Then when you enter Xiaohong likes Xiaoli , Xiaoli likes Xiaohong, the computer will conclude that they are friends. Then the next step of reasoning will be based on the friend relationship."

He Zhichu nodded with satisfaction, "Yes, this is the truth. But this is the most basic description. - Do you use Prolog to compile the process?"

Gu Nianzhi thought for a while, shook his head and said, "I have tried it a few times, but I have not systematically compiled the process on a large scale."

What she learned from Zhao Liangze was the most practical hacking technology, which meant that she studied more and more thoroughly about existing widely used programs.

Because the essence of a hacker is to put it bluntly, it is a cracking function.

The most powerful hacker can crack all programs.

Intelligent programming languages basically have no practical application, so there is no need to crack them, so Gu Nianzhi has a relatively superficial understanding of this aspect.

"What a pity. If you had the chance, if you used Prolog more, some problems wouldn't be a problem." He Zhichu reminded her implicitly.

Gu Nianzhi didn't hear the implication of He Zhichu's words for a moment. She shrugged and said disapprovingly: "But intelligent programs are closely related to the artificial intelligence of computers. Before artificial intelligence makes breakthroughs, these intelligent programming languages can only be used for small tasks." Xiao Nao, why are you spending time on this? After artificial intelligence becomes popular, it won’t be too late for me to study how to crack it.”

He Zhichu shook his head disapprovingly, "Nianzhi, as far as I know, this kind of intelligent programming language is already a semi-finished product in military laboratories in some countries. - A semi-finished product for the military, you know What concept?"

Gu Nianzhi suddenly got stuck.

He Zhichu's status prevented Gu Nianzhi from taking anything he said lightly.

Gu Nianzhi suddenly realized something.

She thought of the programming language Prolog mentioned by He Zhichu just now. Although she only had a superficial understanding of it, this superficial understanding included the core rules of this intelligent programming language.

And He Zhichu's reminder seemed to open the door to a new world in front of Gu Nianzhi.

She stared at the source code on the computer that she had been pondering all morning, and seemed to understand something.

"Nianzhi?" He Zhichu didn't hear Gu Nianzhi speak for a long time, so he called her worriedly.

Gu Nianzhi came back to his senses and said with great joy: "Professor He, you are so awesome! I think I have found the problem! Sorry, I have to find a bug. When I find the bug, I will treat Professor He to dinner!"

"Really? Don't coax me." A faint smile appeared on He Zhichu's cold and cold face. The smile was light and shallow, just like the scattered rain falling into the clear blue lake in spring. Tiny ripples.

Gu Nianzhi nodded repeatedly, "I will never break my promise! Breaking my promise will make me grow into a fat man!"

"Tsk, tsk, you are so cruel to yourself, you even scare me." He Zhichu teased her lightly and hung up the phone.

Looking at the computer in front of him, He Zhichu thought for a moment and clicked on an uncommon program...

After Gu Nianzhi hung up the phone, he stared at the computer screen for half an hour, sitting there motionless, like a clay or wood sculpture.

In fact, her mind was running rapidly, thinking about how to use Prolog, an intelligent logic programming language, and how to crack this intelligent logic programming language.

But the first step in cracking is detection.

He Zhichu's words gave Gu Nianzhi a new idea.

What will happen if Prolog or a programming language similar to Prolog is mixed into an ordinary program

Is the bug that neither she nor Zhao Liangze can find related to an intelligent programming language like Prolog? !

After another half hour, Gu Nianzhi thought everything through, then picked up the mouse, opened his programming notebook, and started writing programs.

This time, she modified her small program for checking bugs and treated the intelligent programming language as a kind of bug to search for.

The basis for the search is that any source code that uses logical settings to run is a bug.

Because ordinary programming languages never write source code with logical settings.

After the modification, she rechecked the source code that Zhao Liangze gave her.

Gu Nianzhi didn't sleep this time. She kept sitting in front of the computer, watching her program run and search without blinking.

I have to say that the source code of the monitoring software that Zhao Liangze gave her was indeed too powerful.

Fortunately, the computer she had in Huo Shaoheng's residence was more powerful and could carry out such high-load calculations and detections.

Even so, it took her almost twelve hours to complete the entire test.

She eats lunch and dinner in her bedroom.

For 12 hours, Gu Nianzhi didn't leave the house. Except for going to the door to pick up lunch and dinner delivered by the orderly, she hardly left her computer.

At eleven o'clock in the evening, her program finally heard the clang of completion.

She had never been so happy to see a big "Done" appear on her computer monitor.

Gu Nianzhi took a long breath.

Clicking on the error-report of the program, she saw a few lines of instructions appearing in the previously empty error report, and she suddenly smiled.

She checked her program all night last night, but not a single error was found.

There was nothing in the error-report, but Gu Nianzhi was not happy at all.

Now that she saw the real error command appearing in the error-report, she was extremely happy and drunk.

Gu Nianzhi read the error detection report excitedly. The more he read, the more excited he became. The more he read, the more excited he became.

"I'll wipe it! Is there such an operation?!"

"You can actually set up a recursion program based on the Prolog intelligent logic programming language in an ordinary programming language!"

"... This is a middle-class player placed among a group of idiots who give instructions for each action, and quietly give instructions to the idiots... "

Gu Nianzhi's heart was filled with excitement and his eyes were filled with confusion.

It's as if in the source code that can only "say one is one, and two is two", there is suddenly an additional code that tells them that when one appears, they can stay put, and when two appears, they can Back to one.

If it is neither one nor two, then run according to the original instruction.

This is like setting up a logically dead program between the two established situations "1 and 2"!

The key is to use intelligent logic programming as the basis, so that this logic will not become an endless loop of virus programs, so it will not be discovered by users of the software.

"It's really amazing! Who is such a genius?!"

Gu Nianzhi ignored the midnight shift and called He Zhichu excitedly: "Professor He! I found the bug! Sure enough, someone mixed a few lines of prolog instructions into the ordinary programming language! - Professor He, you are amazing! You are a genius !A real computer whiz!”

He Zhichu had just fallen asleep and was woken up by Gu Nianzhi's phone call. He was not angry. He smiled lightly and said, "I am extremely honored to be praised by a genius computer expert."

Gu Nianzhi smiled happily, "Professor He is too humble. This question stumps many of us. I didn't expect you to see the essence of the problem right away. I want to ask you, why do you know this is the reason? ? You seem to be very proficient in computers too!"

He Zhichu's eyes flashed and he said calmly: "I am also standing on the shoulders of giants. - I once sponsored a country's military laboratory and saw them conduct tests in this area."

"Oh! I understand!" Gu Nianzhi knew which country He Zhichu was talking about, so she closed her eyes tacitly, "It seems that we still have a long way to catch up..."

"It won't be long." He Zhichu sat leisurely on the bed, "Actually, you said that some of you said that this problem is either a computer problem or a software problem, which has pointed out the core of the problem. I believe that as long as that person is more If you think about it for a while, you can figure out the key to the problem.”

Because only intelligent programming languages can truly drive hardware to serve software.

Gu Nianzhi suddenly felt proud.

Her Mr. Huo is so awesome!

※※※※※※※※※※※※※※※※※※※※※

This is the third update of 3100 words, which is also a big chapter!

Remind everyone of your monthly tickets and recommended tickets!

The first update in the morning is two updates in one, so this is the third update, no problem 2333333~~~

mwah!