C Language Cultivation

Chapter 44: compress (1)

Views:

.{^,^,First^post}^.^.First^post Input address: м..

The compression algorithm is indeed a very important thing.

Computer technology is now in the stage of explosive development, and the resulting data is also massive, not to mention the endless video and audio files on the Internet.

The effect of the compression algorithm is to encode them according to certain rules into a form that is easy to transmit and store, and then decode and restore them to the original data when needed.

Therefore, an effective and lossless compression algorithm can greatly improve the transmission and storage efficiency of various files, data, and signals. If there is no compression algorithm in the world, the Internet may be directly paralyzed because it is too bloated.

Such an important field of algorithms, in the immortal cultivation, symbolizes the realm of Jindan, and it seems to be commensurate with its status.

Lin Xun felt that he had glimpsed the truth.

After about half an hour, the python platform loads.

According to the experience of the last time he was promoted to Foundation Establishment, Lin Xun first spent a long time to realize the basic operations of most object-oriented languages. After pushing the progress of the main task to 50%, he started to connect to the hard disk and searched for the king. The programs collected over the years by security, with various wheels, set out to call the formed compression algorithm one by one.

Huffman coding using binary trees is very classic, and it is indeed the case, and the progress is suddenly increased by ten percent.

The LZ series is essential, five percent.

Shannon is the ancestor, which is of great significance, five percent.

Looking back at the history, Lin Xun then began to call the mainstream lossy and lossless compression algorithms over the years. Their names are strange and their application fields are different.

The progress bar is slowly rising, and the prospects are bright.

But just when Lin Xun thought he was going to reach Jindan smoothly, it suddenly stopped.

Ninety percent.

Next, no matter how cutting-edge the program is called, the progress bar doesn't move.

After some attempts, Lin Xun was sure that the remaining ten percent must have something else to do.

He didn't fight with the system, he came out of the space, searched for relevant papers for a while, and planned to fall asleep.

But his day seemed destined to be busy. As soon as he held the pointer and closed his eyes, the phone rang. The caller's note was Lin Ting.

Lin Ting, his older sister, is three years older and his own.

Lin Xun answered the phone: "Sister."

His sister's voice came from the receiver: "Calculate."

The voice was a little hoarse, not like her usual tone.

Lin Xun: "Do you have a cold?"

"A little bit." Lin Ting said, "My flight tomorrow will be at the Imperial Capital in the afternoon, pick me up."

Lin Xun: "Okay."

He continued: "You send me the flight number."

"Well." Lin Ting said, "Are you going to sleep?"

Lin Xun: "I'm going to sleep."

His sister laughed: "It's so early."

Lin Xun: "I'm not cultivating immortals anymore."

Lin Ting said: "Then I'll hang up first, don't forget to pick me up, I bought you a lot of things."

Lin Xun also smiled while holding the phone: "I can't fit in my closet."

"The space in the closet is like water in a sponge. Good night, darling."

Lin Xun: "Good night... drink more hot water."

Lin Ting: "Shut up."

Closing the phone, Lin Xun looked at the date. He was so busy recently that he almost forgot what month it was today—it was indeed the date.

Lin Ting is studying art abroad and seems to have to hold her own exhibition. Her studies and career are not easy, and it is rare to come back during the holidays, but at this time of the year, she has to ask for leave to return to China.

- The two of them grew up with their grandfather, and their relationship is particularly deep. Two days later, it will be the grandfather's death anniversary. It is their unshakable rule to go back to their hometown to see their grandfather.

The old man was a mourner at the time, but when he was old, he passed away suddenly in his sleep, so he can't talk about sadness, just a little nostalgia. So every year at this time, I would say something in front of his monument, talk about what I did this year, it is a reminiscence, and the next year will be much more practical.

He tugged at the pointer's ear: "Go out with me?"

Pointer licked his fingers.

Lin Xun: "That's the agreement?"

The pointer didn't seem to understand anything, curled up like a normal kitten, lying on his chest and fell asleep.

Lin Xun also fell asleep.

A night without dreams. The next day I got up to write the algorithm, chatted with Dongjun, and then listened to the voices of the seniors and brothers on the fourth floor coming downstairs to remove the demons, and the morning passed quickly. When going out to pick up Lin Ting, in order to prevent pointers from running out to find him yesterday, after asking Dongjun's opinion, Lin Xun simply carried the cat bag and brought pointers into the car.

At 4:20 in the afternoon, he arrived at the airport, found information about Lin Ting's flight, and began to wait at the airport.

Of course, the pointer was also there, and he carried the cat bag in front of him and unzipped it.

The pointer stuck its head out of the opening of the backpack. There were so many people that it seemed a little scared. It looked around anxiously, with a little airy ears, and then meowed at Lin Xun.

Lin Xun deliberately looked at it, and there was a frame on the pointer today.

He's not a lack of observation - based on observations over the days, he's found that when framed, the pointer acts like a normal kitten, washing its face, licking its paws, and eating cat food. When there is no frame, its behavior is more unpredictable, its tail is more flexible, it can enter and exit at will in the cracks of the demon world, and it likes to lie quietly in its arms.

The pointer is now framed, so, not a little liar, a beautiful kitten.

Lin Xun touched the pointer's head: "I'm not afraid."

There were little girls gathered together and whispered, and vaguely heard some words like "little brother". When Lin Xun was asked for a WeChat ID by the three girls and asked by the four girls to take a photo with him and the cat, Lin Ting's plane finally arrived.

Another ten minutes passed, and he saw Lin Ting.

Lin Ting is a beautiful woman with long legs and big wavy hair. She has been alone in a foreign country for a long time, and her aura has become stronger and stronger.

I saw that she was dragging a huge suitcase, wearing a thin windbreaker with strange and bright colors. It's a style of dressing that he doesn't understand.

He re-zipped the cat bag, put it behind his back, and waved to Lin Ting.

Lin Ting walked towards him quickly.

A burst of aroma hit him, and he was hugged tightly by Lin Ting.

Lin Xun: "..."

He has not received such warm treatment for several years.

Lin Ting's arms and body seemed to tremble slightly as he hugged him.

"Sister?" Lin Xun patted his shoulder: "What's wrong?"

After a while, Lin Xun was let go by his sister.

He looked at Lin Ting's shoulders and saw that her eyes were red.

Lin Xun: "Are you lost in love?"

"No." Lin Ting wiped his eyes, his voice a little hoarse: "I miss you."

Lin Xun: "Don't, it won't happen."

"—I really miss you."

Lin Xun: "Then you go back to China after graduation, and don't stay outside."

"It's okay," his sister seemed to be back to normal, smiled vigorously, and began to gag with him: "Is there a shortage of people in Lin's head office?"

Lin Xun: "Forget it, I can't afford you."

Lin Ting: "I guess you can't afford it either. Dear, I will invest in you when I become a rich woman."

The next moment, she noticed the cat bag on Lin Xun's back.

Miss Lin screamed in surprise at the airport, and the helpless pointer fell into her arms.

The two reminisced all the way, and in the evening, they returned to Chaoyang Community.

—Lin Ting booked a hotel nearby, but she was going to fill Lin Xun's closet today, and she also had to look at the safety and architecture, so she first went to Chaoyang Community, then had dinner with everyone, and finally returned to the hotel.

As soon as the door opened, Wang An’an and Zhao Jiujiu called out “sister” to the two of them. They were very attentive—they had a lot of dealings. At first, when the three of them rented a house outside to be Luo, their life was a mess. Thanks to Lin Ting went home to take care of him.

Lin Ting happily agreed and chatted with them for a long time - she also bought games for each of them.

This time Lin Xun was not sour, he knew what was waiting for him.

Sure enough, Lin Ting took care of Wang An'an and Zhao Jianshe, dragged the suitcase to his room, and opened it—

"Sister." Lin Xun said sincerely, "I really don't want to change my clothes."

Lin Ting: "You have to try on one by one and tout my aesthetic."

After tossing for more than an hour, when Lin Xun's wardrobe was no longer full, Ms. Lin finally stopped.

Lin Xun was sitting on the bed, wearing a white sweater that was said to be a new autumn model of a luxury brand, but he couldn't taste anything special with his aesthetics.

"That's right," Lin Ting took out a white bottle from the interlayer of the suitcase and said in an addicted tone, "This year's favorite perfume is just a masculine fragrance. It's aquatic, mixed with warm and cold, and it feels suitable for my brother."

Lin Xun perfunctory: "It smells good."

Lin Ting: "?"

Lin Ting: "You smell good even if I don't open the lid?"

She sprayed Lin Xun three times in a row.

Lin Xun wanted to hide at first, but after a second, he was completely still.

This fragrance…

The next second, the pointer's claws scratched in the air: "Meow?"

It opened its eyes wide and looked around the room as if looking for someone.

This, perfume.

The aroma can't be smelled when it is just diffused, but as it spreads in the room, the aroma fades...

Like the first snow of winter, or the cold sunlight on a snowy mountain.

—Isn’t this the one used by Dongjun

Lin Ting watched his reaction with interest: "How is it?"

Lin Xun had already memorized the smell of this perfume before, and equated it with the breath of Dongjun, and even almost formed a conditioned reflex. So, he was close to a coma at this time, and even had the illusion that Dongjun was not far away.

He felt that the tips of his fingers were slightly weak, and he almost didn't hug the cat, and replied to Lin Ting, "It's... very good."

"I'll send it to you then," Lin Ting came to the head of his bed. "I like to spray it on the pillow, like this..."

Saying that, she aimed at Lin Xun's pillow and sprayed it three more times accurately.

"Don't." Lin Xun wanted to stop it, but it was too late, his sister's hand was too fast.

Lin Ting seemed very satisfied: "This fragrance still lasts for a long time, and it will have a great atmosphere overnight."

.

Lin Xun thought that she didn't want to let herself sleep.