The main contents of data structure research include: the logical structure of data, the storage structure of data, and the operation of data. A data structure refers to a collection of data elements that have one or more specific relationships with each other. According to the logical structure of data, it can be divided into linear structure and non-linear structure.
The main contents of data structure research are: 1. The logical structure of data; 2. The storage structure of data; 3. Data operations.
Related introduction:
Definition
Data structure is the way a computer stores and organizes data. A data structure refers to a collection of data elements that have one or more specific relationships with each other.
Usually, carefully selected data structures can bring higher operating or storage efficiency.
Classification
There are many kinds of data structures. Generally speaking, they are simply classified according to the logical structure of the data, including linear structures and non-linear structures. .
1. Linear structure
Simply put, linear structure means that each node in the table has a linear relationship. If described in the language of data structure, the linear structure should include the following points:
1. The linear structure is a non-empty set.
2. The linear structure has one and only one start node and one terminal node.
3. All nodes in a linear structure have at most one direct predecessor node and one direct successor node.
Linear tables are typical linear structures, and stacks, queues, strings, etc. are all linear structures.
2. Non-linear structure
Simply put, the non-linear structure means that there are multiple corresponding relationships between each node in the table. If described in the language of data structure, the nonlinear structure should include the following points:
1. The nonlinear structure is a non-empty set.
2. A node in a nonlinear structure may have multiple direct predecessor nodes and multiple direct successor nodes.
In practical applications, data structures such as arrays, generalized tables, tree structures, and graph structures are all nonlinear structures.
The above is the detailed content of What are the three main contents of data structure research?. For more information, please follow other related articles on the PHP Chinese website!