Chapter 228: Iterative Algorithms

According to the report of the observation post at the top of the mountain, the number of troops in the upper reaches of the Aixin Kingdom was about 1,500 men, mixed in foot and horse, and carrying a large number of rafts. Pen "Fun" Pavilion www.biquge.info

Sun Dingliao estimated that this should be one of the eight flags of the new country.

The voice of the mountaintop observation post came over the intercom:

"Sentry B report: The direction of the enemy soldiers is two quarters, and the enemy's flag is three and a half centimeters higher."

When the few orphans in the staff who were helping heard the latest data, they crackled and made a decision.

The equipment for measuring the direction of enemy troops at the summit observation post is simple. Fill a bowl with a scale around it and place a magnetized sewing needle in the center of the bowl. The scale mark on the edge of the bowl is aligned with the enemy, and the scale pointed by the sewing needle is the direction.

Theoretically, as long as there is data from two directions from different posts, the position of the enemy can be calculated according to the trigonometric function.

In fact, each observation post will also report the height of the enemy's flag that they have measured, and the distance from the enemy can be calculated directly from the height of the banner.

The device for measuring the height of the flag is simpler: a standard wooden stick two feet long, with a column perpendicular to the stick at the end, and a scale on the post. The sentry simply holds one end of the standard stick to his eye and reads the scale on the post at the other end of the stick.

If the target is viewed at a close distance, the sentry can also read directly from a distance of one foot, or even half a foot. In addition to the flag, the target of observation can also be the height of the cavalry, the height of the infantry, and even the height of the mountain.

In fact, there were several outposts monitoring this group of enemy troops on the top of the mountain, and the data on the direction angle and the height of the Daxu flag summarized by each outpost were used to calculate the coordinates of this group of men and horses in the Aixin Country.

According to the theory of computer algorithms in later generations, Sun Yi designed a simple iterative formula. The principle is to average the minimum square difference, remove the maximum and minimum values, and constantly replace the old data with new data. As the data increases, the accuracy of the calculations increases rapidly.

The orphans substitute the latest data into the previous results and mark the latest position on the sandbox.

At noon, Sun Yi looked at the sand table and was distracted.

The maximum distance of this men's march today was fifty miles, and it had already retreated ten miles in the morning.

At present, the weather is hot, it is the dry season on the grassland, and there are not many places suitable for camping with water sources. Combined with the speed and trajectory of this centaur, the staff has predicted the possible camping range of this centaur, and plans to launch a surprise attack in this area while the enemy soldiers are drowsy.

But it was only thirty miles away in a straight line from the camp of the Aixin Country.

Thirty miles away, the Mongolian cavalry of the two banners of Aixinguo could arrive in half an hour.

If you add the time when the news is transmitted back to the camp of the new country, it is an hour.

Sun Yi raised his head and asked Yang Ritian, Sun Dingliao and Battle: "Is one hour enough?" Can this battle be fought? ”

Without even thinking about it, Battle replied, "Enough! ”

Sun Dingliao hesitated a little: "We are fighting more with less, and it will be very troublesome if we are accidentally bitten by Aixinguo." But if we give up today's opportunity, it will be even more troublesome if this Eight Banners soldiers start to force their way across the Yellow River. ”

Yang Ritian didn't speak, and went back and forth in the staff department a few times.

"Hit!"

Yang Zongbing made up his mind: "Fight resolutely!" Run when you're done! If you can't retreat back to the west bank, you will run into Erlang Mountain. ”

Battle excitedly slammed his fist into the palm of his hand, and turned around to leave the staff.

Yang Ritian stopped him unceremoniously, "What's the hurry?" If you want to fight, it will be a matter of time, and you will be able to ride in an hour. Now let the soldiers have a good rest, you will stay in the staff headquarters honestly for me! ”

Sun Dingliao advised Battle: "This battle must be fought fiercely to be effective, and it must be withdrawn violently before it can be escaped." Stay in the staff and familiarize yourself with all the details again. ”

……

At dawn, the second battalion, which was in high spirits, set off with the whole battalion.

Worried about Battle's lack of experience in battle, the general soldier Yang Ritian personally led the team with a radio station.

They first went north along the river, and after twenty miles of travel, they joined the sailors and the first battalion who were waiting there. The equipment was handed over to the sailors, and the second battalion swam across the river. After rearming under the cover of the sailors, the 2nd Battalion rushed straight to the predetermined location.

Battle hid his men in a dry ditch and sent two sentries to lie on the bank of the river and guard them with binoculars.

Yang Ritian started the first radio contact as planned.

The orphan boss called the walkie-talkie at the observation post on the top of the mountain, and the results of the staff department's calculations were immediately transferred to the walkie-talkie:

"The people of Aixinguo are in the direction of your three quarters, twelve miles away."

Both Yang Ritian and Battle breathed a sigh of relief.

The men and horses of Aixinguo are carrying baggage, and these twelve miles are enough for them to walk for a while, and the second battalion can take the opportunity to take a good rest.

The boss is also called Yang Liulang who is far away in Shulinzi Township.

Yang Liulang shouldered a special mission: to listen to the radio communication throughout the whole process, and after the observation post on the top of the hill issued a warning to the cavalry of the Aixinguo battalion to leave, the second battalion immediately retreated.

Battle has never fought a big battle, and if Yang Ritian fights a war, he will ignore it, and Sun Yi has no choice but to arrange it like this.

Yang Liulang sighed on the radio: "I really didn't expect the war to be fought like this!" ”

Yang Ritian responded: "If this battle is won, the dolls' abacus beads account for more than half of the credit." ”

……

Yue Tuo, who was decorated with red flags, led the men and horses of his headquarters to trek under the scorching sun.

The flat Osaka slope grassland can be seen at a glance for ten miles, but Yue Tuo always feels that something is wrong.

The sound of the creaking wooden wheels made him even more restless,

Yue Tuo sent scouts in several directions one after another.

The task of the red flag is to find a remote ferry in the upper reaches of the Yellow River, cross the Yellow River with the raft they carry, and then go straight to the rear of the Wolf Mountain River, cut off the back road of the coalition army, form a siege with the soldiers and horses of the Aixin Kingdom on the east bank, and force the coalition army to hand over Duo'er Hong and the magical king eight.

Huang Taiji's plan is simple, and Yue Tuo is under a lot of pressure.

Because if the red flag does not completely cut off the back road of the coalition army, the coalition army will inevitably kill Duo'er Hong and escape, and Yue Tuo will definitely be Huang Taiji's culprit at that time.

And on the grassland, it is almost impossible to block the back road of a group of centaurs.

The scouts sent reported one after another, but no anomalies were found.

Yue Tuo also knew that his uneasiness did not come from fear of ambushes. First, there is no way to hide a large number of people on the grassland, and second, the children of the Eight Banners have not lost in the field.

Yue Tuo urged his mounts and ordered: "The whole army will speed up and rush to the Yellow River to camp. ”

Before the words fell, it seemed that a team of men and horses came out of the ground, stirring up a puff of smoke and dust and slamming it into the red flag.

Yue Tuo frowned slightly, and revised the order: "Batch armor, meet the enemy!" ”