Logically speaking, data structures are mainly divided into two categories, namely linear structures and non-linear structures.
The logical structure and physical structure of data are two closely related aspects of data structure. The same logical structure can correspond to different storage structures. The design of the algorithm depends on the logical structure of the data, and the implementation of the algorithm depends on the specified storage structure.
There are many types of data structures. Generally speaking, data are simply classified according to their logical structure, including linear structures and non-linear structures.
1. Linear structure means that each node in the table has a linear relationship.
2. The non-linear structure means that there are multiple corresponding relationships between each node in the table.
The above is the detailed content of From a logical perspective, what are the main categories of data structures?. For more information, please follow other related articles on the PHP Chinese website!