Hello, Mr. Major General

The first thousand and twenty-six chapters, her family Huo Shao is great

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

She has never encountered such a situation.

He Zhichu gave a light cough 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 it is still in the laboratory stage."

"Then you know why it is not widely used?" He Zhichu inspired Gu Nianzhi's thinking like a lecture in the classroom.

"Prolog, or Programming-in-logic, as the name suggests, it is a programming language based on logic theory, that is, a kind of intelligent program. The existing computer hardware level is limited, not enough to support the large-scale 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 and looked at the shining sun outside the window, and squinted.

"Uh, is Professor He testing me?"

"Aren't you called a genius computer expert? Let me see how you master the basic knowledge." He Zhichu smiled lightly, put down the curtain with his slender fingers, walked to his desk, sat down, and opened it. Up the computer.

Gu Nianzhi chuckled and said, "Well, that's how I understand it. In ordinary programming languages, programmers have an absolute dominant position. His lines of code are clear and unambiguous, and they are all instructions to the computer. And Prolog Logic programming languages, however, set logic rules for the computer, and then let the computer determine how to proceed with the next step according to the logic rules."

"For example, using a common programming language to make a computer calculate formulas, the programmer teaches the computer to multiply and divide, then add and subtract. The computer strictly calculates in accordance with the calculation sequence set by the programmer. From this perspective, the computer executes the programmer's command , Never make mistakes. The only thing that makes a mistake is that the programmer writes the wrong program."

"And Prolog, a logic programming language, processes data in accordance with logic rules, not simply adding and subtracting first and then multiplying and dividing."

"The simplest logical relationship is this. First set Xiaohong as a person, Xiaoli is also a human, and the two 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, and the computer will conclude that they are friends. Then the next step of reasoning runs according to the friend relationship."

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

Gu Nianzhi thought for a while, shook his head and said, "I have tried several times, but there is no systematic large-scale editing process."

What she learned from Zhao Liangze is the most practical hacking technique, which means that she has more and more thorough research on the currently widely used programs.

Because the essence of hackers is to crack the function.

The most powerful hacker can crack all programs.

As for the intelligent programming language, there is basically no practical application and no cracking is required. Therefore, Gu Nianzhi has a relatively superficial understanding of this aspect.

"It's a pity, if you have the opportunity, you use Prolog more programming, some problems will not become a problem." He Zhichu implicitly reminded her.

When Gu Nianyi didn't hear what He Zhichu was saying, she shrugged and said disapprovingly: "But intelligent programs are closely related to computer artificial intelligence. Before artificial intelligence makes breakthroughs, these intelligent programming languages ​​can only be small Little trouble, why spend time on this? After artificial intelligence becomes popular, it’s not too late for me to study how to crack it."

He Zhichu shook his head disapprovingly, "Nianzhi, as far as I know, this intelligent programming language is already a semi-finished product in military laboratories in some countries.

Gu Nianyi got stuck.

He Zhichu's status makes Gu Nianzhi unable to ignore any words he said.

Gu Nianzhi suddenly realized something.

She thought of the programming language Prolog mentioned by He Zhichu. Although she only has a superficial understanding, these superficial understandings include the core rules of this intelligent programming language.

And He Zhichu's prompt also opened the door to a new world in front of Gu Nianzhi.

She fixedly looked at the computer and thought about the source code all morning, as if she understood something.

"Nianzhi?" He Zhichu didn't hear Gu Nianzhi talking for a long time, and called her with some worry.

Gu Nianzhi recovered and said with great joy: "Professor He, you are too good! I think I have found the problem! Sorry I am looking for the bug. When I find the bug, I will invite Professor He to dinner!"

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

Gu Nianzhi nodded repeatedly, "Never break my promise! Breaking my promise makes me a fat man!"

"Tsk tusk, you're so cruel to yourself, even I'm afraid." He Zhichu teased her slightly and hung up the phone.

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

...

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

In fact, her mind was running fast, recalling 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 vision.

What will happen if there is Prolog or a programming language similar to Prolog in an ordinary program?

The bug that she and Zhao Liangze couldn't find was related to the intelligent programming language like Prolog?!

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

This time, she modified the small program that she checked for bugs, and treated the intelligent programming language as a kind of bug.

The basis for searching is that all source codes that are run with logic settings are bugs.

Because ordinary programming languages ​​never use logic settings to write source code.

After the modification, the source code that Zhao Liangze gave her was checked again.

This time Gu Nianzhi didn't sleep anymore. She had been sitting in front of the computer, watching her program running and searching without blinking.

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

Fortunately, her computer at Huo Shaoheng's mansion is more powerful to perform such high-load calculations and inspections.

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

She eats lunch and dinner in the bedroom.

For 12 hours, Gu Nianzhi stayed at home, except for going to the door to get lunch and dinner from the orderly soldiers, she hardly left the computer.

At eleven o'clock in the evening, her program finally heard the jingle of success.

She had never been so happy to see the big "Done" appearing on the computer screen.

Gu Nianzhi took a long breath.

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

Last night, her program was checked all night, but no error was found.

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

Now that she saw the real wrong instruction appeared in the error-report, she was extremely happy and was also drunk.

Gu Nianzhi was excited to read the error inspection report.

"I wipe! There is still this kind of operation?!"

"You can actually set a recursive () program based on the Prolog intelligent logic programming language in a common programming language!"

"...This is the placement of a second-second player in a group of fools who order and move one by one, and quietly give instructions to the fools..."

Gu Nianzhi was excited and dizzy.

It's like in the source code that only "says one is one, says two is two", suddenly there is a kind of code, telling them that when one appears, they can stay there, when two appear, they can Back to one.

If it is neither one nor two, then it runs as originally ordered.

This is so that a logical dead program is set between the established "one and two" situations!

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 the users of the software.

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

Gu Nianzhi couldn't take care of the late night, and excitedly called He Zhichu: "Professor He! I found the bug! Sure enough, someone has mixed a few lines of prolog instructions in a common programming language!-Professor He, you are too good! You are Genius! Real little computer expert!"

He Zhichu just fell asleep and was awakened by Gu Nianzhi's phone. He was not angry, and smiled lightly and said: "It is a great honor to be praised by a genius computer expert."

Gu Nianzhi smiled happily, "Professor He is too humble. This question has puzzled many of us. I didn't expect you to see the essence of the problem at once. I want to ask you why 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 have done this kind of test."

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

"It's not long anymore." He Zhichu leaned back on the bed. "Actually, you said that some of you raised this problem either with a computer or a software. You have already pointed out the core of the problem. I believe that person only needs to think more about it. After a while, the key to the problem can be figured out."

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

Gu Nianyi felt proud and proud.

Her Huo Shao is so awesome!

This is the third more 3100 words, and it is also a big chapter!

Remind you of the monthly and recommended tickets!

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

muah!