Qu Yuan Yu Fu's algorithm pursuit

Source: Internet
Author: User

Qu Yuan Yu Fu's algorithm pursuit

 

Before analyzing Qu Yuan Yu Fu's algorithm pursuit, let's take a look at the original article "Yu Fu:

 

Qu Yuan both put, swim in the river, line Yin zebian, color gaunt, withered.
The fisherman asked, "What is the relationship between the son and the third-party doctor? Why?

Qu Yuan said: the world is full of turbidity I only clear, all people are drunk I wake up, is to see.

The fisherman said: the saints are not stuck in things, but can go with the passage of the world. The world is muddy, why not spread its mud? All people are drunk,
Why don't you feed it? Why do we think deeply?

Qu Yuan said: I smell it, and the new mu will play the crown. The new bath shall shake the clothes. Can anneng observe by body and be subject to the Wenwen of things? Ning to Xiang stream, buried in the belly of the river fish, anneng with Hao white, and the dust of the secular?

The fisherman smiled and went with a drum. The song said: the water of the Canglang is clear, you can see me, the water of the Canglang is muddy, you can see my feet, then go, no more than words.

The important scenario in this article "Fisherman" is that "the world is muddy and everyone is drunk". In software, we may wish to say that there are many fragments of memory that are about to run out to compare the world with turbidity, all people are drunk.

 

According to his father-in-law's mind, "the water of the waves is clear, and the water of the waves is muddy, and the water of the waves is clear." The water of the waves is clear, which means that the memory allocation is normal, if there are no memory fragments, you can allocate the memory and make good use of it (you can continue to use it ). When all memory fragments are in the system, it is difficult to allocate large volumes of memory, and only some small memory fragments can be allocated, so that it can be used for some small purposes ).

 

Let's take a look at Qu Yuan's idea of "all the world is dirty, I am clear, everyone is drunk, and I am awake", that is, when the memory is exhausted, there is no need to allocate memory (I just clear ).

 

According to the above analysis, it is not difficult to see that the fisherman is pursuing a high-Reliability Algorithm (such as server software). When the memory is normal, the primary function computing is implemented. When the memory is insufficient, go to another branch to implement some simple function computing, and wait for the system memory to be recycled to become normal. The program will not exit, and it will continue to run reliably.

 

Qu Yuan is pursuing efficient algorithms (such as client software). When the system memory is full of fragments and the efficiency is low, he does not choose to jump to another branch to run like a fisherman, but quit the program, so Qu Yuan finally fell into the river.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.