Big talk data structure Chapter 1 data structure introduction 1st how did you learn the data structure?

Source: Internet
Author: User
1.2 How did you learn the data structure?
One of my students called Cai Yao and nicknamed Cai Yao ". He has been communicating with me through e-mail some time ago. He talked about some of his work experiences and was deeply touched. Here I will talk about the story of coriander.
He told me that when I was a student, I didn't really have a good data structure at all. I often skipped classes, and I barely passed the test after a temporary assault. After graduation, he found a job after several times. Program Employee's work.
At work, once they needed to develop a customer service telephone system project, their project manager arranged for the dishes to complete the customer queuing module Code Work.
The dish thinks this is easy. A customer queuing table is designed with a database, and an auto-incrementing integer number is used as the customer's number. If you come to a customer, insert a piece of data at the end of the table. When the customer service system is idle, the minimum number of customers from this table will be extracted and submitted, and this record will be deleted. It took him two days to submit the code after he finished the development and passed the test. Who knows their project manager, after reading the code, ran to his desk and patted him and said, "How did you learn the data structure? What database does this real-time queuing module use? Isn't it enough to complete it in the memory. Change it now. It must be completed today and handed over to me early tomorrow morning ."
The food was so cold and sweaty that the face was a little big and the trial period was not over. Don't lose your job. So he worked overtime that day, busy until, and re-implemented this function with array variables, because he designed 100 as the length of the array for fear of array overflow.
When he got home, he was afraid that there was a problem with the code, so he talked about it with his cousin laruence. His cousin smiled and said to him, "How did you learn the data structure ?" The side dish opened its mouth in surprise and couldn't say a word. Then his cousin told him that this real-time queuing system usually uses the queue structure in the data structure to be good. Although Arrays can also be used, it is necessary to consider overflow, it is inconvenient to consider moving new and deleted data. You just need ...... So ...... You can.
With the help of laruence, the food was busy until, and the code was re-written using the queue structure. When I went to work, I copied the code back to the company with a USB flash drive, and finally it became a pass for the project manager.
Then, the dish began to pay attention to the data structure and retrieve the university textbooks and learn again. He sent me some emails and asked me a lot about his confusing data structures and Algorithm I also answered his questions one by one. One day, he finally completed the course and wrote a thank-you letter to me, which said:
"Instructor FENG: Hello! Thank you for your help during this time. It is my greatest regret that you did not take your class well in college. I have now learned the entire book "Data Structure", and I have gained a lot. However, I have always been confused and want to ask you, that is, I found in my work that the structures I need, such as stacks, queues, linked lists, and HASH lists, and search, sort, and other algorithms in Programming Language The Development Kit has a perfect implementation. I only need to know how to use them. Why do I need to understand the algorithm principles here ?"
When I received this letter, I immediately jumped up and immediately dialed his mobile phone. The first sentence was ...... You guess, what did I say?
"How did you learn the data structure ?" (The audience shouted loudly and laughed)
Well, why am I talking about it? You will naturally understand it after you finish my courses. I only hope that some people will not say this to you in the future. If you have heard this sentence, please do not say it, your data structure teacher is I ban Qingyang, hey.
Now we officially start the class.

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.