1. Data Elements and data items
The data element is the basic unit of the data, which is usually considered and processed as a whole in the computer program. A data element can consist of several data items. A data item is an indivisible, self-contained, smallest unit of data that is sometimes referred to as a field or domain. In the Database information processing system, a record in the data table is a data element. The fields of student number, name, gender, birthplace, date of birth, achievement, etc. in this record are data items. Data items are divided into two kinds, one is called elementary items, such as student gender, place of origin, etc., can not be separated, another called combination items, such as student scores, can be divided into mathematics, physics, chemistry and other smaller.
2. Data Objects
A data object is a collection of data elements of the same nature and is a subset of the data. For example, the integer data object is {0,1,-1,2,-2,...}, and the character data object is {A,b,c,...}.
3. Data structure
A data structure is a collection of one or more specific relationships that exist between each other. In any problem, the data elements are not isolated, but there is a certain relationship, the relationship becomes a structure. Basic data structure in 4:
(1) Set: There are no other relationships in which elements exist except for the relationship of "one set of genera".
(2) Linear structure: the element in the structure has a one-to-one relationship.
(3) tree structure: There is a one-to-many relationship between elements in this structure.
(4) Graph structure: There are many-to-many relationships between data elements in this structure.
4. Data structure précis-writers for DS, is a two-tuple
DS={D,R}
D refers to a finite set of data elements, and R is a finite set of relationships between data elements.
Data structure and algorithm 2016-05-31