Genius of the Rules-Style System

Chapter 77 Let others enjoy the joy together

What is a boss?

This is the boss!

The researchers and professors I met before all asked me to apply for computer-related majors in a certain university, promising that they would be admitted through independent admissions with reduced scores.

Direct admission now!

No need to take the college entrance examination!

Admit directly!

The University of Science and Technology is also one of the top universities in the country, and only those with the best college entrance examination scores can enter.

After hearing this, Zhao Yi had the urge to study the algorithm package.

But forget it.

Who would have set the goal of being admitted to Shuimu University when traveling through time?

Zhao Yi was still curious and clicked on the algorithm package sent by Professor Liu. There were four algorithm packages in total. He clicked on two and glanced at them a few times.

Headache!

The contents of these algorithm packages are really complex, and it takes a lot of time to understand them. Simplifying and revising them must be a grand project, and it feels like writing them all over again.

That's the job of a programmer.

Other people's things belong to other people. If you follow other people's ideas to understand the program, sometimes it's better to write it all over again, and it may be faster.

certainly.

The premise is that you can write it.

In addition, reading other people's programs will also affect your thinking. Maybe when you design it yourself, you can think of some shortcuts that you can't think of when studying other people's programs.

A wave of hunger came over me.

As soon as Zhao Yicai opened the door, he heard his mother's cry, "Xiaoyi, are you done? There are still vegetables and steamed buns in the pot, please finish eating before going to bed!"

"good"!

After he finished eating, he lay down and fell asleep.

When I woke up exhausted the next day, breakfast was already on the table and a text message was received on my phone.

Dad: Your mother asked me to remind you to have breakfast.

Reply: Got it.

Ever since Zhao Zhenxi got a mobile phone, he has always tried to use it, whether to make calls or send text messages. The dozens of text messages included in the monthly package are like losing money if he doesn't use them, but most of his friends circle Without a mobile phone, there is no receiver even if you want to send text messages.

Zhao Yi shook his head funny.

After having breakfast, he continued to fight in high spirits.

debug!

run!

After the screening program is compiled, it has been debugged and run. He mainly debugs the subsequent programs and looks at the overall operation.

With nearly 5,000 lines of code running, there are still quite a few errors.

Even with the assistance of "Contact Rate", there are more than 20 input errors alone. If a symbol is typed incorrectly, it will cause huge problems in the program.

Debugging and modification!

Debugging and modifying again!

After more than two hours, the program finally ran successfully.

Zhao Yi entered several initial states of the Rubik's Cube and got the results he imagined.

His main concern is the speed of operation.

After one set of data was entered, the CPU reached its maximum efficiency instantly. The computer seemed to be stuck, and it took three or four seconds to get the result.

He simply added a counting item nn to the screening program. Every time the filtering program is run, the counting item will increase a little.

Then he entered two Rubik's Cube states that could be restored in fifteen steps.

The program runs for about a second and the results are obtained.

The result is no problem.

nn got different values, one is 36211 and the other is 67091.

"so little?"

Zhao Yi was surprised.

Even if he was confident in the screening method, he did not expect that the second step of screening and comparison would generate such a huge amount of data.

It’s right when you think about it.

The screening and comparison eliminates the most computationally demanding and useless parts, and the continued operation eliminates more steps that make the Rubik's Cube confusing.

The amount of calculation increases exponentially.

Filtering makes the base of the index smaller, and within ten steps it will increase in units of thousands or hundreds, and the amount of increase can be ignored.

"If it is the most complex situation, the number of screenings can reach tens of millions, or even hundreds of millions?"

Zhao Yi thought.

That kind of data is actually not much.

Ordinary home computers can still solve it, but the calculation time required is longer, perhaps tens of seconds, perhaps one minute, several minutes, or more than ten minutes.

Even if it rises to the level of hours, it is already quite remarkable.

It is now recognized around the world that the calculation of the third-order Rubik's Cube can only be done using supercomputers, and the performance of home computers is really far behind.

Once the program is designed, the rest is optimization.

Zhao Yi made an input optimization.

Previously, in order to facilitate entry into the design theme, the input terminal required fifty-four colors from six interfaces. In fact, inputting only three faces was enough to determine the entire Rubik's Cube.

After adding the input optimization code, only twenty-seven colors for three sides are needed.

After that comes the detection code.

If the entered Rubik's Cube color does not hold true, the detection code will be executed and an error message will be given.

Then.

Zhao Yi made a simple interface.

There are twenty-seven spaces on the left, which can be filled with the color of the Rubik's Cube; on the right is a blank output interface, which will express the results of the minimum steps of rotation in text form.

Add a small prompt box in the middle.

According to the running status of the program, put three prompts: please enter the color of the Rubik's Cube; the program is being executed, please wait; when completed, please see the steps on the right.

OK!

Finish!

Zhao Yi looked at the interface on the computer and the answer given on the right after entering a Rubik's Cube state, and felt a huge sense of accomplishment.

finished!

The result of several days and more than ten hours of work!

This is the essence!

This is art!

At a great moment of success, can you still be considered a human being if you don't pretend to be cool?

right!

It’s about letting others join in the joy!

Zhao Yi quickly took a screenshot of the screen, then sent it to the 'Computer Technology Exchange Group', and then dived silently with a smile on his face and his arms crossed.

Suddenly.

The group exploded!

A few days ago, when Zhao Yi posted data in response to online questions, the group discussed the problem of calculating the third-order Rubik's Cube, and the discussion came to no result.

Everyone thought the matter was over.

The day before yesterday, Zhao Yi made a video to restore the Rubik's Cube, which once again aroused discussion in the group, but there was still no result.

Most people in the group are not familiar with Zhao Yi.

It is very impolite to ask directly about this kind of issue that may involve key technologies, because the technology involved may be priceless.

Now seeing the picture sent by Zhao Yi, everyone in the group was immediately shocked.

Intelligent Technology Zhang Junlei: "Is this the third-order Rubik's Cube cracked?"

Mechanical signal Liu Chengwu: "I don't believe it! I don't believe it! I don't believe it..."

Ma Xiaojun, a Neo-Confucian missionary: "Don't be kidding, I have been thinking about it for several days, but I have no idea at all. The amount of calculation is too huge!"

Gao Jixian, the dreamer of creating a human being: "Can it really be calculated?"

Sister Qian Hong said: "When I saw this, I immediately put it down to the work at hand and took out the Rubik's Cube/Rubik's Cube picture from the drawer."

Qian Hong actually sent a few pictures of the Rubik's Cube, and added by the way, "Use that calculator to help you with the calculations. If you can figure it out, I'll call you dad."

Zhang Junlei: "She is indeed Sister Geili!"

Liu Chengwu: "Give it to Sister Li!"

Ma Xiaojun: "Give it to Sister Li!"

Gao Jixian: "Give it to Sister Li!"

Zhao Yi pursed his lips hard, looked at the picture and entered it into the Rubik's Cube calculator, quickly calculated the result, and then sent the screenshot to the group.

Suddenly.

The group fell silent.

When Zhao Yi was preparing to wait for the follow-up, he suddenly heard a knock on the door outside. When he paid attention, he realized that it was past twelve o'clock.

"So early?" He went over to open the door.

There was a group of people standing at the door.

Sun Liang opened the door at the front and went in.

Lin Xiaoqing and Zhao Linlin followed closely behind, laughing and talking to each other, saying hello and going in.

There are two left outside the door.

One is a middle-aged man with a somewhat stout figure, dressed in casual clothes; the other is a tall woman wearing a long skirt, all dressed up very fashionably.

The middle-aged man smiled and stretched out his hand, "You must be Zhao Yi, the genius hacker on the Internet. I am Zhou Fangsheng, the head of the program team of "Brain Bang"."

He pointed at the woman beside him, "This is Feng Lai from Tianyuan Studio."

"You can call me Sister Feng." Feng Lai added with a warm smile on his face.

Zhao Yi nodded and asked, "What is your purpose of coming...?"

"We are here to meet you face to face and talk about the misunderstanding that happened before."

Feng Lai said bluntly, "There are a lot of public opinions on the Internet, and they say anything. I think it will have a bad impact on both our column and your life."

As she spoke, she looked around and asked with a smile, "Are we going to talk here?"

"Please come in!"

Zhao Yi glanced into the room, then turned around and gave up his position.

For the sake of Pumpkin Computer being splashed with water, just give me a few recommendation votes.

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

You'll Also Like