Two greedy algorithms and life planning of data structure domain algorithm series

Source: Internet
Author: User

a few days ago chatting with the benzene crab talked about planning for the future. The crab said he was going to5years later to be like a Daniel so familiar with all professional knowledge and to write articles. When you're done with your own, ask me."5yearWhat is the career plan? "I'm actually the kind of person who usually thinks it's all right5Year Plan? So I told her honestly:"I didn't5year planning, I think as long as you meetEverything that goes, naturally leads to the best results. "

benzene crabs After hearing the big surprise:"How can you not plan it?! "

no wonder the benzene crab will be amazed. because I told her the story about how to plan my life as a painter in Reader's Digest, and extrapolate the story of how to become a millionaire. And now I tell her that I've said so much,deceive her to believe that the magic of planning life, in fact, they do not admit it! But I do feel that5Year Plan is useless. So I took a lot of breath to describe her.APRan algorithm used:"Greedy CountMethod", to illustrate your point of view with an example. Probably means,5The purpose of the year's plan seems clear, but it takes countless variables to reach the final goal. Every time you do one thing, you save it.in the selection, with the final destination interval5years of time we never know the path behind every small choice in the end where it leads. So instead of moving in the direction of self-righteousness in a lost forest, choose toThe most important thing to do is to look at the place. Of course, Zhuge Liang's eyes will be light some, the pig brother's eyes dim some.

actually I am the kind of person who usually has nothing in mind, do things byintuition is the majority. But I think it's not a atavism. When someone asked me these things I never want to, I will be in accordance with the context of the present one out. Because decades of life tellI, if I told people I did not think, that people do not think I am a fool will think I look down on him. As for what I believe in myself, that's a real ghost to know. I don't even think about it.What do you think of yourself? But the benzene crab is indeed a man of strong will. Despite the hype that I put on greedy arithmetic, she still believes5the magic of the year planning, and must have a purpose to exist in order to have the development of thisa reason. It seems to be waiting .5I 'll see you in years. See when the first one5when the annual plan is finished, the sheep or the surname crab is known. Ha ha. But honestly, I highly doubt that the benzene crab is so convinced5the magic of the Year Plan is the last time I talked about how to marry a millionaire when super-level played.

##########I'm the dividing line .##########

Reference Documents1:

thereforeThis is probably the case. A man asks his friends how to5can be a famous painter who can make a living. Friend told him to be in5to become a painter and to earn a living, the first4years should have been soldthe first painting, and there are many works in the gallery to do the exhibition;3years should have been a lot of finished paintings, and there are some gallery friends;2years should have mastered the art of paintingart creation, in order to achieve the purpose of the second year, should now resign, moved to the artist's colony, enrolled in the Art Institute to study painting. In order to allow the benzene crab to understand deeply, I also deliberately raised a counter-three of the benzene crabs assumed how to5years to become the million rich woman's life plan.

if5The easiest way to become a millionaire after years is to marry millionaires.

then in the first4years and a halfThere must be a millionaire marrying,and every day in various ways close to the eyeMark;4years, you have to use your charm and temperament to meet the millionaire,and get a few good candidates, if you want to meet hundredmillion-millionaire words then in the first3years should be in themillionaires in and out of the place, of course, there is also a job there can; then the first2years should have been in the millionaires ' meetingWork with the club, and it's not a job to brush dishes.in order to increase the hit rate and1years should go to aWomen's School study etiquette, form, textArt and music, to enhance the charm and temperamentWell, now it's time to work hard and save enough .tuition fees for girls ' schools. benzene crabs After listening to this story deep thought, but also deliberately to these two stories arerecorded in their ownBLOGon.

##########I'm the dividing line .##########

Reference Three2:

The algorithm is not my director. The greedy algorithm is probably meant to solve a problem that requires a large amount of computation to solve, do not bother to find the best solution, but useTo construct the optimal solution graduallythe method. At each stage,make a seemingly optimal decision.(under certain standards). The basis for making greedy decisions is called the greedy rule. Once a decision is made, it can no longer be changed. Greedy algorithm throughGradual approximationthe way to getsolution,Not necessarily the optimal solution, but always find a solution quickly. This algorithm isIC Designcan be used to solve the shortest path problem in automatic routing: in a large pile of points, starting from a certain point, with the shortest line to string up the heap.

Two greedy algorithms and life planning of data structure domain algorithm series

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.