Chapter 77: Konjac's Su Xiaomu and the long-lost you are in love
Sometimes it's not good to know too much, it's too good, it's so good that it's extraordinarily dazzling and noisy.
- Su Xiaomu.
Tan Ling had no reason to refuse this small request, and he still admired this junior brother who had swiped the school's notice three times in a short period of time.
"It's okay, I'll call up the algorithm design of the whole program for you first, you have to take a look at the general outline, the algorithm part of the data structure has special markings, just locate it directly. ”
"The algorithm design of the whole program is relatively large, the underlying is C++, and the data and data structure are Java and Python, you know everything, right?"
Tan Ling bent down to operate on the workbench while babbling about the introduction.
When I straightened up, there was a lot more content on the monitor screen of the workbench.
Su Xiaomu on the side nodded and said shyly, "C++ and Python are okay, Java is a little worse, then, let me take a look first?"
Seeing Tan Ling nodding and getting out of the way, Su Xiaomu sat down in front of the workbench.
The topic itself is relatively loose, and everyone is not busy anyway, so a few heads are squeezed over piecemeal.
For this only undergraduate student who Professor Zhang Ke has accepted for so many years, in addition to the insiders of the college, they are also curious.
Zhang Ke held the thermos cup and looked at it with a smile on the side, and didn't speak, Xu Wei remembered that he was once so young, so good, and so ......
Thinking about it, he suddenly thought of his crazy receding hairline, and drank a large sip of angelica wolfberry water.
You still have to pay attention to maintenance.
…………
The whole program is clearly listed from the general outline of algorithm design, and the selection of data structure retrieval algorithm is also unveiled.
Su Xiaomu held his chin with his left hand, and rolled the mouse from time to time with his right hand, showing his thoughts.
Truth be told, he's never seen such elegant code other than what he's written.
Professor Zhang Ke is worthy of being the most rigorous and humorous professor in the school, and the selected students are exceptionally excellent, and they do not hesitate to strive for excellence in their topics.
The design of some algorithms in the general outline was a little too much for Su Xiaomu, and his brows frowned involuntarily.
The experience of AC to more than 1,300 questions in UVA has played a role, and the right hand unconsciously fiddled for a while, and the frown spread.
In this way, about twenty minutes later, Su Xiaomu smiled shyly and said.
"I think this retrieval algorithm for data structures can be done in this way......
There are many kinds of binary tree traversal methods, just like what university we go to and what major we choose, different choices will have different traversal methods, so can we ...... like this?"
Crackling, slender fingers waving light on the keyboard.
"Don't move, my old swan, don't move!"
Tan Ling pushed his glasses violently and hurriedly stopped.
"Junior brother, this senior has to talk about you, although our code on the subject is backed up, it is generally not recommended to modify it without authorization...... balabala~”
Da ~ Da Da ~ Da Da Da.
The rhythm of the keyboard and the chatter of the balabala played a piece of music that was quick and slow.
"Ah, I'll remember to say it in advance in the future, but senior, if you look at this, although there are still different options, it seems to be a little more convenient to search......"
When Tan Ling Balabala, Su Xiaomu did not stop the movements of his hands, and knocked down the last one at this time';' , compared a small gesture, and said in a konjac voice.
Well?
Tan Ling was stunned for a moment, and then looked confused.
Is this changing?
Don't you need to think about designing the algorithm first?
Is that how the keyboard listens to you?
Also, you......
it?
Is that okay too?
"Uh, junior brother, you said, you're here to smash the field, actually!"
After a moment, Tan Ling said bluntly.
The algorithm design of the data structure part of the program was personally designed by Tan Ling himself.
Su Xiaomu smiled shyly, "No, no, I just happen to know a little bit about data structures and the relationship with algorithms." ”
Hehe~
Hehehe~
Hehehehe~
Coincidentally, I know a little bit about it......
Am I pretty? I ask you, am I pretty?
Every bloodshot and every bit of puffiness in the eyes of several seniors behind Tan Ling were saying this.
"Wow, Senior Brother Xiaomu, why are you so powerful. ”
The exclamation sounded from Su Xiaomu's right side, and when he turned his head, he saw that Lin Tang had his hands folded, and his eyes were blinking out.
If he hadn't known her skin, Su Xiaomu would have almost believed it.
"That, Senior Sister Lin, do you know that Li Shizhen is actually not dead?" Su Xiaomu suddenly raised his eyebrows.
Lin Tang: "???"
How, what does that mean?
How do this person's eyebrows feel a little ......
When Lin Tang was still thinking about what Su Xiaomu's words meant, Su Xiaomu had already invested in the modification of the next piece of code.
…………
…………
For most of the next half an hour, Su Xiaomu picked out a piece of code for local optimization.
Since the small garbage system gave the knowledge of this part of the data structure, Su Xiaomu has not systematically used this part of the knowledge.
Even in the development of the Saoke APP, it is only a simple use - because...
Not at all.
"There are many ways to sort data, and this part of it can be ...... like this"
Su Xiaomu said as he modified the code, and his slender hands seemed to be waving a bright wind, which was very dazzling.
The structure of data is not static, at least, for Su Xiaomu, it is like this.
He can row without oars, he can sail without direction, and as long as he hits the keyboard fast enough, he can keep up with the speed at which he speaks......
As for the other modules, Su Xiaomu won't go to the class to get an axe, some places are beyond the outline, not to mention optimization, it takes a little effort to understand......
Professor Zhang Ke, who was holding a thermos cup and drinking angelica wolfberry water from time to time, rubbed his chin and said secretly in his heart.
"This Yangcheng is a bit too big, it's so hard to get some news! This kid, I have to see how many things he has!"
It's also interesting to say, if there is no basic principle of data and metadata and storage structure given by the small garbage system, Su Xiaomu may not be able to be so calm.
Data can also have dirty data, which is usually uncontrolled and absolutely ineffective, and can take up space and even affect normal data.
A well-selected data structure can effectively reduce the generation of dirty data. ①
In addition, the retrieval algorithm and index of the data structure can be carefully optimized, which can make the operation of data more efficient, and also make the data storage more efficient.
Make the data itself less bloated.
This is also the part that Professor Zhang Ke hopes to optimize, which can effectively save storage resources and make the calculation faster.
It's hard to imagine that data can look so elegant.
When Su Xiaomu knocked down the last ';' After that, all the operations are over.
Lin Tang bit his lower lip lightly, clasped his hands together on his chest and patted it, "Senior Brother Xiaomu, how can you be so powerful!"
Su Xiaomu: "......"
Can I apply for a brain broadband?
This elementary school sister is so naughty!
I really want to punch a monster.
emmmm。
"Theoretically, the current data structure should be about 20 percent more efficient for data storage and 15 percent more efficient for operation. ”
At the end, Su Xiaomu concluded.
Tan Ling and Zhang Ke both nodded.
"Junior brother, I can't see it, you are a bit condescending at this level, you have to suggest to our school that you take enough credits, so that excellent students can apply for grade skipping. ”
Tan Ling said with a smile.
Su Xiaomu hurriedly got up and waved his hand, and said very honestly. "You're so popular, I have a lot to learn, and I can't understand the algorithm design in many places of this program, just, I can't understand ......it."
Looking at a few pairs of eyes that were getting more and more wrong, Su Xiaomu scratched his head and finished speaking.
…………
…………
After that, Tan Ling stepped forward to preside over the program, and several seniors, including the naughty Lin Xuejie, also entered their respective roles.
To tell the truth, Su Xiaomu only knows eighty or ninety percent of the design part of the entire program, and no matter how much he cocks his tail, he will not preside over the program so unforcedly.
Tan Ling's movements were fast, and within a few minutes, the 16 compute nodes began to work again.
The program returns a wide variety of parameters.
After a long time, Tan Ling withdrew his gaze from looking at the display screen, sighed, and said.
"Professor, the storage efficiency of data is indeed more than 25% higher than what the junior brother said, and the operation efficiency is also 20% higher, but it is still the same problem, according to the existing feedback results, only 32 computing nodes can barely be used......
The old and difficult question is placed in front of us:
There are only two ways to apply for more storage resources, and apply for vendors to optimize and perform more operations with the same storage resources.
The bottleneck is not the storage space, but the performance, processing efficiency, and pressure of the storage.
If it was storage space, Professor Zhang Ke would have thought of a way a long time ago.
Let's put it this way, with the same storage space and different storage matrix configurations, the performance can vary by 20 times, 100 times, or even hundreds of times.
There are a lot of parameters involved.
For example, the speed of the hard disk, the size, quantity, and specifications of the hard disk space, the processor and memory of the storage head, the corresponding efficiency, IOPS, and throughput of the storage system. ②
Hard disks have different sizes, capacities and speeds, the faster the speed, the higher the data read and write efficiency, although it is the same storage space, but with 4T 7200 rpm hard disk and with 14 300GB of a total of 4T space 15000 rpm solid state drive, the efficiency is absolutely heaven and earth.
Su Xiaomu couldn't help with this, although he actually considered writing a program to put on the storage, helping the storage to write data to the hard disk faster, so that the hardware resources of the storage could be maximized......
(1): I really said this casually, the concept of dirty data is too complicated to explain, as long as there is data, there is basically a possibility of dirty data.
(2): IOPS: that is, the number of data reads and writes (I/O) operations per second, in other words, it is about equivalent to when we copy and paste files in our daily life, displaying tens of Ms per second.
======
Broken bowls. Ask for recommendation votes, refills.
Today is a change, but there are more than 3,000 words.