Understanding of the relationship between data structure and algorithm

There is a course for big data major: data structure and algorithm relationship.

We teach data structures in this course, but many times we will talk about algorithms and their relationships. There are many books on the market called "Data Structure and Algorithm Analysis".

Someone may ask whether it is only about the data structure or the algorithm together? So the question is, what is the relationship between them? Why put it together?

So let’s make an analogy for this problem. There are a lot of furniture in the home, such as refrigerator, TV, washing machine, rice cooker. So many pieces of furniture have different purposes, namely data structures.
Algorithm is a method of processing data structure. The corresponding furniture should be placed in different rooms. The process of using different functions to use furniture in different rooms is called algorithm.

If we only talk about the data structure, it is certainly possible. We can introduce several important data in a short time. You may not feel anything after listening, but you don't know what these data structures do. But if you take the corresponding algorithm and talk about it again, you will find that you will even feel a little emotional: "The predecessors who studied computers in the past are so powerful. They have so many problems that seem to be difficult to solve. Become so wonderful and magical.

Guess you like

Origin blog.csdn.net/weixin_51766972/article/details/109231139