Seeing that everyone is always talking about the importance of data structure, I can let myself learn, but I can't find a suitable method.
I want to share with you my experience in learning and applying data structures in the past year.
The content comes from the author's own experience and understanding, hoping to inspire everyone to learn data structure.
What is a data structure?
Data structure consists of two parts: data and structure. In this way, it is easy to think that the essence of data structure is a kind of knowledge about data structure. To add a knowledge point, the essence of data structure is closely related to discrete mathematics. Discrete mathematics processes discrete (discontinuous) data. From the point of view of data structure, it can also be understood as discontinuous data structure.
2 data structure and programming language
The data structure has nothing to do with the programming language itself, but the only relationship is the practical programming language that describes the data structure.
Because data structure is an abstract data, it can be realized in a computer through a programming language. Nowadays, the languages commonly used to describe data structures in university data structure courses are C programming language, C++ programming language and JAVA programming language. For students who like other languages, they can describe the data structure in their own familiar programming language.
I used to like C# programming language, and realized some data structures with C# programming.
Visit my CSTC column, and you can see two data structures described in C#.
3 data structure learning skills
3. 1 After learning the concept of data structure, design abstract data types with reference to container design in C++ STL standard library, which will greatly improve the learning of data structure and the ability of programming interface.
3.2 For the data structure of sequential storage (array), which is often neglected in the course of data structure, I hope everyone will pay more attention to this quick knowledge. For some occasions, it is necessary to consider the sequential storage structure when changing space with time.
3.3 Data structure learning must complete the code implementation independently. Although sometimes you understand the content, it will become more and more difficult to realize it. Solving these difficulties will help you improve your programming ability.