Super-brain hacker

Chapter 622 Counterattack

Before everyone could react, Lin Hong had changed the program.

He added a piece of code directly to Tang Huaxin's program, and did not write another tank program by himself.

His speed is so fast that these people present do not fully understand what functions his code is and what algorithms are used.

Lin Hong tested a few data and finally confirmed that the program was correct, so he turned to Wu Dong and said, "It's almost done. Try it."

Someone next to

muttered, "Is this all right? Is it true?

Many people agree with him. After all, the time is too short. Although his programming efficiency is very high and he looks very powerful, after all, everyone knows too little about Lin Hong and doesn't know his specific level at all.

And this competition is related to the reputation of the Department of Computer Science of Shuimu University. If it is too hasty and loses the game, it will be too shameful. Therefore, everyone is still a little worried. They think it's a little unreliable to be so hasty.

Wu Dong didn't think so.

Since Lin Hong said it was okay, it must be okay.

Since Wu Dong nodded, Tang Huaxin naturally had no opinion. In fact, he also wanted to see whether the tank after Lin Hong's improvement could defeat the other party.

If he can really win, then Lin Hong is too perverted.

Liang Jingming still disdains this. In such a short time, even Da Luo Jinxian can't save them.

You know, the algorithm he used, but it took him a long time for him and Professor Meng of the school to finally complete it. In order to make it perfect, I don't know how many tests and experiments were done during this period. He even asked Shuimu University for a special competition, and finally analyzed and improved according to the results of the competition. .

Professor Meng is a teacher who teaches the "Artificial Intelligence" course in the University of Technology. He has a very deep knowledge in this area and is at the forefront of the country, precisely because of his existence. Polytechnic University has only gradually risen in the field of robotics in recent years... The second game begins!

It is still a red tank and a blue tank.

However, to everyone's great surprise, this opening is very similar to the last one. At first, both sides were randomly moving, and then shooting at each other.

The only difference is that the probability of both sides hitting each other seems to be getting closer. Most of the time, you hit me, and I will hit you again later.

That is to say. As soon as Lin Hong wrote the code for a short time, he increased the hit rate of the blue tank a lot, at least twice as much as before.

This change shocked many people.

Especially Liang Jingming, he looked at Lin Hong several times with his eyes.

He found my algorithm after watching only one game, and wrote it in such a short time. How could it be possible?

The algorithm he uses is based on pattern matching, and a statistical algorithm is added, which is exactly this algorithm. The random quantity algorithm of Tang Huaxin tank was restrained to death.

This algorithm assumes that the enemy is making some random movement in a certain way, and then the direction in which he needs to shoot is the direction of several random decisions of the enemy.

The key is here. After dividing these directions, there will be a statistical law, that is, the probability of concentrating the enemy in one or several directions is relatively large.

Every time he shoots, he shoots in the direction that is most likely to hit the opponent. Once hit, the probability of hitting in this direction is increased, and once he does not hit, the probability is reduced accordingly, so on. The next time you shoot, it will be adjusted accordingly.

The more data, the more accurate the result will be. In the end, the probability of hitting the enemy will be greater and greater.

This principle is simple to say. But most of the time it is like this. If there is no inspiration or opportunity, no matter how you think about it, you can't figure it out. This layer of paper will not disappear by itself no matter what.

Liang Jingming and Professor Meng of the school also got this algorithm by chance, and the result was very effective after a try. Then it took a long time to implement this algorithm.

Although the

algorithm is simple, it is not so easy to implement.

After this algorithm came out, Professor Meng told him that he could almost laugh at the whole university. Even if he participated in the national competition to be held later, it was easy to win the championship. Liang Jingming is convinced of this.

However, now his idea has changed a little.

With the passage of time, the game also progressed to the middle stage, and the blood tank of the blue tank was also consumed in half.

Judging from the current situation, it seems inevitable that Liang Jingming wants to win this victory, but it may be a little unrealistic to win the national competition.

This person from Shuimu University has seen through their algorithm in just a little time, and even realized it. Although the other party's accuracy is not very accurate, after all, it has improved many times compared with the past.

If you spend more time, it is very likely to win the game.

Shuimu University is really a little talented.

Liang Jingming thought so in his heart, but he didn't forgive anyone at all. He looked at Lin Hong and said, "Although you have improved, you are still losing this time!"

Although his words are very unpleasant, these people from Shuimu University have to admit that what he said seems to be true.

You know, now half of the blood volume of the blue tank has been lost, while the red tank has only lost one-third, and the end seems to be doomed.

Is this really the case?

Lin Hong doesn't think so.

Wu Dong took a look at the boss and found that the corners of his mouth were smiling. He suddenly calmed and retorted, "Is it too early for you to say this?"

Everyone looked at him in surprise and didn't know where his confidence came from.

Humph, the dead duck's mouth is hard, and he won't cry if he doesn't see the coffin!

Liang Jingming glanced at him, disdained to pay attention to him at all, and then continued to cast his eyes on the display screen.

He saw that the red tank fired a shell, and the blue tank successfully dodged, and then the red tank fired again, thinking that it should hit this time, but to his surprise, the blue tank dodged again this time.

The third shot!

See if you still have such good luck!

God seemed to suddenly stand on the side of the blue tank. Liang Jingming couldn't believe that the blue tank actually dodged again. Instead, it was his counterattack, but hit his own tank.

Others haven't noticed anything, but Liang Jingming feels a little bad.

His feeling was accurate, and the following situation made everyone feel incomprehensible. They saw that the shooting of the red tank had little chance to hit the blue tank. With the red tank being shot again and again, the comparison of the blood tank consumption of the two has been reversed.

Unconsciously, the blood consumption of the red tank has been more than that of the blue tank.

What happened?

Everyone is full of fog, except for Lin Hong.

Then, the students of Shuimu University cheered unconsciously, and they saw the hope of victory!

If there is no further change in the red tank, the blue side will definitely win this test.

And the fact is that the blue tank magically avoided the attack of the shells again and again, while the shells they fired hit the other party from time to time.

The last shell hit the red tank, and with the sound of an explosion, Shuimu University won the game.

Everyone cheered.

The score is one to one equal.

Shuimu University unexpectedly had a beautiful counterattack in the middle of the journey, turned defeat into victory. What happened in the middle?

Although everyone is not very clear, they also know that this must be Lin Hong's credit. After all, he just improved the tank's code and algorithm.

Many people look at Lin Hong differently.

Both Wu Dong and Tang Huaxin knew that this time, their Shuimu University would definitely win. Lin Hong wrapped the face of Shuimu University, although this face was only caused by an ignorant child.

An Zhe was extremely surprised to see this situation. He looked at Lin Hong for a long time. He really couldn't think of how such a powerful figure suddenly appeared in Shuimu University. He knew that they could only fail this time. For this result, it made him feel slightly relieved.

Liang Jingming's hands in his pocket clenched and trembled slightly.

The result behind him was extremely unexpected.

He still can't believe that the other party turned the tables so easily.

How is this possible?

He never believes that this result is caused by their midway improvement of the code.

"Come again!" Liang Jingming bit his lip.

He does not intend to modify the code halfway like them. If he can modify the code in a period of time, he will not wait until now. Unless he has a new algorithm, it is impossible to change the existing algorithm in such a short time.

Wu Dong naturally can't ask for his words.

The third game begins.

There is no suspense at all in this duel. As soon as it came on the field, the blue tank showed an extremely prominent circumvention algorithm, and the red tank could rarely hit the target.

The blue tank seems to suddenly become smart. Like the pattern matching algorithm, it has a clear grasp of all the attack routines of the other party, and then anticipates the direction of the opponent's next attack, and finally effectively dodge in advance.

This time, the result was a bit like the second half of the last game. The red tank exploded with a "pop" in the accidental hit of the blue tank again and again.

Two wins in three games, and Shuimu University won the final victory. ( To be continued. If you like this work, you are welcome to vote for recommendation and monthly ticket. Your support is my greatest motivation.) RQ