1. There are many explanations for the data structure, this article adopts the definition of the undergraduate textbook, that is, the data structure is a collection of one or more specific sets of elements. This relationship includes the logical structure and the storage structure.
2. The logical structure is that the data structure abstracts the logical relationship between the elements in the real problem, and forms a finite set of elements and data relations.
3. Storage structure is the data structure according to the different storage methods in the computer, divided into sequential storage and chain storage.
Sequential storage represents a logical relationship between data elements by means of their relative positions in memory, and chained storage represents a logical relationship between data elements by means of pointers that indicate the storage address of the element.
4. The design of any algorithm depends on the chosen logical structure, and the implementation of the algorithm relies on the storage structure adopted.
What is a data structure