Current location - Training Enrollment Network - Mathematics courses - What should I learn before learning data structures and algorithms?
What should I learn before learning data structures and algorithms?
Obviously, you need to know a programming language first. Data structures can be implemented in different languages. You can look at the commonly used data structure textbooks, some are based on C and some are based on JAVA, so it is necessary to learn a language before learning data structures and algorithms.

Because a lot of contents in the data structure book are pseudocode of C language, you should not understand if you don't understand C language. Learn the basic knowledge of point C language, data type, loop branch, structure, pointer and so on in detail. Generally speaking, after learning C language, the efficiency will be higher. In addition, good mathematics helps to understand algorithms, such as dynamic programming and decision trees. For specific knowledge, you can go to Xiaomuge Li Mingjie to study.

Because data structures need to be programmed. In content, a large part of the data structure is independent, but some of it is related to other courses, such as discrete mathematics and linear algebra, but it has little influence. It's all detailed in the book. Data structure is very theoretical, so it is very important to write more codes, understand the principle and program.