Statistics show that in the current

Among those who are killed or injured before the age of 50, men are more than three times as likely as women.

Although the natural birth rate of male newborns was relatively high later, gradually leveling the sex ratio, the population structure still has problems today.

From the activity records of the new Soviet military officials, Raphael seemed to see that they had not yet emerged from the painful collective memory created by the war.

“The Russians were right to decide to take a two-pronged approach,” Raphael said. “Anyone with a little knowledge can understand that both autonomous heavy equipment and autonomous humanoid units can find their place within the army system and can be quickly integrated.”

She took out a cup, walked to the side, and made two cups of instant coffee, then said:

"But one thing is certain: once autonomous systems emerge, the development of another thing, namely targeted electromagnetic pulse weapons, will enter a new fast track."

Upon hearing Raphael say this, Lingyin immediately recalled her own past experiences and blurted out:

"EMP (Electromagnetic Pulse) attack".

With a cryptic smile, Raphael asked, "Clever Lingyin, please tell me, what is the best electromagnetic pulse generator currently available?"

"nuclear weapon."

"Yes, at that time, the battlefield will return to its traditional form."

"What tradition?"

"The killing between people is aimed at eliminating the physical body."

P.S.: The data charts are for fun and not strictly accurate.

Volume Two: Battles in the North and South: Chapter 231 Pascal's Ambitions

In fact, what Raphael really wants to do now is not to wait for the war to break out, but to take the humanoid squad and enough equipment support into Soviet territory, find and eliminate the Relics Department's beacon contact in the Soviet Union.

But this plan is tantamount to suicide.

Now is not a good time to think about these things; about 27 people are sitting in the classroom waiting for her to impart knowledge.

Raphael turned and stepped down from the blackboard, casually writing down two sequences: X{A, B, C, B, D, A, B} and Y{B, C, D, A, B, A}, and asked:

"What is the longest common subsequence of sequences X and Y? See if you can tell it with your naked eye."

She looked around and heard someone answer "AB" before pointing to the sequence and saying:

"AB, is it only 2 units long? Has anyone found one that's longer? Don't be shy, say it out loud."

"DBD, BDAB"

"Is there anything else?"

Raphael pointed to the longest "BDAB" sequence that had been written down and said:

"So BDAB is the longest one."

She habitually tapped the longest common subsequence she had written with chalk, then asked the students in the lecture hall:

"Is there any that is the same length as it? Is there any that is about the same length?"

“BCAB!”

Is there anything else?

“BCBA, very good, these are all of length 4.”

Finally, a student dared to respond loudly. Raphael slowly exhaled and then said:

"Okay, let's use an algorithm to prove that what we've observed above is correct and that there really is no common subsequence of length 5."

As she wrote on the blackboard, she said:

"For these subsequences, we can say that the LCS of any x and y is, here we prefer to use function notation, i.e. LCS(x, y), but in essence it is a relation rather than a function."

Therefore, we call this LCS, which refers to one of those LCSs.

Of course, this representation isn't entirely standard. However, as long as we understand it in our minds, there shouldn't be any major problems. Also, we shouldn't use symbols haphazardly, but being a little casual is fine too, because simpler representations are easier to express.

The premise is that you understand its essence.

So, let's continue. This problem can be solved using exhaustive search. We check every subsequence from 1 to m in x—perhaps that's what you were thinking—and then see if y also has the same subsequence. In other words, we calculate all the subsequences in the problem.

Algorithm courses are indeed tedious, but everyone who wants to make a name for themselves in the field of computer science cannot escape the torment of algorithms.

Raphael stood on tiptoe and pushed the blackboard up.

His adorable struggle made the young people sitting in the front row chuckle.

"Alright, focus."

Raphael coughed and continued:

"Let's analyze this operation. If we know a subsequence of x, how much time do you need to determine if it is a subsequence of y? For example, if I give you a sequence like BCAB, is it a sequence of y?"

"The length of y is O(N)."

"How did you know?"

"It's just a scan."

"That's right. If the first identical character is found, then we start recursively according to the subscripts of x and y to determine whether the corresponding elements in x and y are the same."

In short, it involves going through the string sequentially, traversing it, and checking for any duplicates.

Raphael glanced at the lesson plan information in his hand and asked his second question:

"So the second question naturally becomes, how many subsequences does x have? 2^m?"

"x ranges from 1 to m, meaning there are 2^m subsequences of x."

The same student answered the second question, which made her feel somewhat unhappy.

"Yes, you're right. There are 2^m subsequences of x. We have a way to calculate how many subsequences a sequence has. Consider a 'bit vector' of length m, which is actually a binary number, using 1 and 0 to represent the elements at the corresponding bits."

Each bit contains only 0 or 1. If an element is marked as 1, it means that this element has been put into the subsequence, and thus I can obtain a mapping.

Of course, some subsequences might have the same characters, but that's the worst-case scenario where all characters are different. In that case, every subsequence would be distinct.

Therefore, each bit vector of length m corresponds to a subsequence. This is the general idea. Thus, the worst-case running time of this method is O(n·2^m), which means that since m is in the exponential position, the running time is also exponential.

Here, we can use a term to describe exponential running time: slow.

Raphael's words were brimming with confidence and certainty, and looking at the students in this class through his clear and concise blackboard writing, one couldn't help but sigh with admiration.

She glanced at her watch and said loudly:

"Take a 10-minute break. If you have any questions, you can come up and ask them now."

Clearly, none of the students in the audience intended to get up, because this was the worst and least efficient method of calculation, a method that any student who had passed the C/C++ course exam could use.

The following content is the key.

Raphael was well aware of this; the core of the lesson was dynamic programming, and she would demonstrate a more efficient solution in the following time. The case of the longest common subsequence is a classic example of dynamic programming, and then she would explore the consistency between recursion and dynamic programming.

She believes that understanding and comprehension are not true mastery; only by appreciating the details can one develop their own unique understanding.

Only insights and reflections truly allow one to learn knowledge to the depths of their soul.

Raphael unscrewed the water bottle, took two gulps, and then leaned close to Pascal in the corner of the front row, lowering his voice to say:

"Why didn't you go to Rhine-Frankfurt? I heard the academic atmosphere there is also very good."

Pascal lay on the long table and answered in a muffled voice:

“I’m not stupid. The traditional computer science subjects over there are indeed very strong, but the artificial intelligence here should be the strongest… Why go to the long way around?”

"How's the atmosphere in the lab? Those brats didn't give you any trouble, did they?"

"No."

Pascal pursed her lips; this was completely different from the laboratory she had imagined.

I've heard of some really bad professors who don't treat their students like students. They not only expect students to be their slaves, but they also steal their research results.

Furthermore, they might be forced to postpone graduation because they find it so easy to use.

But Raphael's laboratory was completely different. The laboratory manager seemed to have seen through the illusions of the world, and the other team members were not much different.

Here, apart from the fact that the mental state of the lab project team members is a bit poor, it seems that only the senior student has been stuck on graduation issues, while the academic progress of the rest of them is proceeding according to the normal timeline.

She recalled how easily her senior brother answered her questions when she repeatedly bombarded him with basic ones, which made her realize why he had to extend his studies—he was just too easy to handle, and they couldn't bear to let him go.

However, the junior from the Automation Department named… Pascal thought for a moment, oh, “Like Reese”—unusually recruited into the lab in his sophomore year—was in slightly better spirits.

What puzzled her even more was why Raphael would recruit such young automation students.

However, the fact that Raphael was willing to hire him shows that she thinks highly of his talent and ability; after all, she doesn't keep idle people around.

I wonder what my junior will choose in two years: stay in the lab to pursue a degree in artificial intelligence, or leave to return to his original field and seek further study with a professor in the automation department.

Actually, either is fine. This major is a hodgepodge of multiple disciplines, commonly known as a "jack-of-all-trades," basically including many core courses from the computer science field.

In addition to automatic control theory, the course also covers hardware knowledge and software programming, which are fundamental to computer science.

If one were to apply for a doctoral program under Raphael, and given that one is considered a promising candidate, the difficulty should not be too high.

Previously, some people doubted Raphael's abilities, but as the AI ​​lab continued to secure military projects and produce results, no one questioned Raphael's capabilities anymore.

Those with ulterior motives began to set their sights on the position of Raphael's personal disciple.

Now that he has been given the title of professor, the significance and benefits are even more extraordinary.

Like other leading authorities in their respective industries, his every move is highly eye-catching.

Some of the choices are particularly intriguing. Since Raphael opened up the spots, everyone had their eyes on them.

Pascal secretly observed Raphael out of the corner of his eye. He had always guessed that she must be very capable, but what was even more impressive was that Raphael's height and development seemed to have remained unchanged over the years.

Raphael rolled up his lesson plan, gently tapped it on the girl's forehead, and said in a sinister tone:

"My intuition is warning me that you are thinking something strange and impolite right now."

"Where's the evidence?" the girl asked with a smile, tilting her head.

"You'll help me operate the blackboard later," Raphael said, turning his head slightly. "You can't refuse."

As the blackboard was pulled down, the students' respectful gazes were all fixed on Pascal.

There, they seemed to see the future they had dreamed of, and the whole classroom was suddenly filled with a kind of inspiring and striving spirit that Pascal couldn't quite understand.

“Okay, let’s look at the new method. Of course, this will be broken down into several steps…”

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like