Data structure and algorithm 2016-05-31

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.