Chapter 90: Shortest path (5)
-
C Language Cultivation
- Yi Shi Si Zhou
- 1088 characters
- 2021-03-02 05:02:37
The dark shadows interweave into a giant web of vertical and horizontal directions. At the moment when Lin Xun approached the glass door, they had at least eight close to Lin Xun's body. Lin Xun's ears were full of roaring wind sounds, and the sound of sharp objects breaking through the sky—the monster's claws had a hard sharpness that did not conform to the laws of biology.
The sword qi was staggered and shot out in all directions with Lin Xun as the center, resisting for a while.
It can't be blocked for a while, but it can't be blocked forever. The consumption of Jianqi is limited, which is directly related to Lin Xun's physical condition.
He didn't want to block it forever. The sword tip of the long sword ran straight towards the glass door. The huge reaction force came. His wrists were numb and his handle almost came off. The glass door of the explosion-proof material is indeed strong. His blow of Jindan Realm only broke a cobweb-shaped crack. After repeated striking several times, he finally felt a slight depression in the glass texture under his hand. And the little white shadow in the door is slowly approaching you.
But at this time, his wrist was soft and trembling because of the force, and it was abnormally red.
Lin Xun looked at the white shadow and thought that he had a stunt for breaking the net. No matter what level of monster the girl was, it would not go to heaven. Thinking this way, he bowed his heart and kicked at the toughened explosion-proof door that was already covered with dense cracks in the cobweb!
With a clatter, broken glass fell one after another, and Lin Xun also felt an indescribable pain at the knee joint, which was almost the same as the dislocation feeling, but still able to go.
The face of Bai Ying was clearly shown in it. The white skirt with two braids on both sides, familiar facial features, is undoubtedly the girl Lin Kexin met in the mental hospital. But what was different from that time was that her eyes were all covered with black, and her white eyes disappeared. She walked out of the deep subway tunnel space, like a lifeless puppet doll, a ghostly kind.
Obviously, she was controlled by the monster, and when Lin Xun left the children's hospital, she was still like a normal girl-who is in her body, the "invisible friend"? In this way, is this invisible friend the initiator of this trap? After Lin Kexin spoke of Metro Line 4, he managed to mislead everyone into the basement of the small building. Or, Lin Kexin and her friend, who had been colluding with each other, had laid this trap together.
The purpose of this trap is undoubtedly to wipe out the cultivation world, and then piggyback on Lin Xun, or... simply Lin Xun.
Lin Xun’s mind didn’t stop for a moment, and the sword energy around him didn’t stop. He knew he would fight for a while, and he couldn’t get him on the subway track. Thousand monsters. As a result, Lin Xun fought back and back, and took a dozen steps back.
Lin Kexin also slowly came out of the hole in the subway tunnel. She looked directly at Lin Xun, and the movement of the monsters around her stopped slowly.
Lin Xun also looked at her.
He opened his mouth and asked, "What are you going to do?"
Lin Kexin still stared straight at him, then tilted his head, as if thinking about something.
Then, for a moment in the next second, she rose into the air and rushed towards Linxun in a strange posture! She reached out her right hand, her slender five fingers hooked into claws, and grabbed Lin Xun's Tianling cover!
Obviously still a few meters away, the familiar tingling appeared in his brain again, just like the day when the system was damaged, he immediately knew that the monster would not negotiate with him, let alone shake hands with peace, their purpose was to remove Got something on his body, or put him to death.
At the same time, other monsters around him also flew up, and the black shadow was overwhelming. One person's power to deal with these thousands of enemies was unimaginable from any angle.
His power is limited. Indeed, as long as he wants, he can wield any amount of sword energy, and he can wield any strength of sword energy, but these two cannot be done at the same time. To increase the quantity of sword energy, he must sacrifice the quantity, and these While the monsters are strong and strong, there is also a huge number of them-especially one of them, Lin Kexin, who does not know the strength.
This is not because the mantis arm is in the car, it is a small branch floating on the water, trying to block the flood of the Yellow River that is about to wash down upstream.
But Lin Xun didn't panic.
The sword streamer in his hand changed back to the keyboard posture.
In between two or three seconds, which is a matter of life and death, he called up a program, at the speed of a programmer's hand, with five fingers, modified two parameters.
Some problems are hard to imagine for people, but not for computers. In the abstract sense, all concepts are mathematics.
Every monster has a position, in three-dimensional space, abstracted as a point.
The sword in Lin Xun's hand is also a point.
A line can be connected between points and points, which is the path of monsters and sword qi movement, a mathematical concept, road.
Then the whole scene is just a picture.
In applied mathematics, there is a field called graph theory, and there is a kind of problem called combinatorial optimization problem. The laying of urban underground waterways, the planning of transportation routes, the cash flow in the financial network... are all its uses.
How can Lin Xun block all monsters that threaten his life with the fastest speed and confront Lin Kexin?
While attacking the monster, how to ensure that the strength of Jian Qi is the largest within the range he can achieve?
The first problem is called the shortest path problem.
The second problem is called the maximum flow problem.
There are also many forming algorithms to solve these two problems, Dijkstra, Prim, SAP, HLPP...
This is mathematics, and the application of mathematics.
When the wind roared, Lin Xun looked as usual when he was alive, press the run button.
Sometimes, facing a monster is like facing a final exam. His heartbeat is very stable, because he is not an inexperienced person.