Read data structure (C language version)

Source: Internet
Author: User

Data:Data is a symbol of real-world substances, in the computer meaning can be entered into the computer to calculate processing symbols for data, is the objective world in the computer representation, is the process of processing raw materials. Data can be sounds, pictures, documents
Data elements:The basic constituent unit of the data, usually in a structured form, such as the bibliographic information of a book, including the author, title, publication number, publishing house, these data items, data items are the smallest units that make up the data elements are not divisible.
Data Objects:is a collection of data elements with the same structure, which is a subset of the data, equivalent to the concept of a set;
Data structure:Describing the relationship between data elements, we refer to the relationship between the data element as a structure, i.e. data structure, depending on whether the relationship between elements is linear or nonlinear, the data structure can be divided into the following four categories:
1. CollectionData elements are in the same data object, but are not connected;
2. Linear tableThere is a one-to-one relationship between data elements
3. Tree-type StructureA one-to-many relationship exists between data elements
4. Mesh structure or graphic structureThere are many-to-many relationships between data elements
The logical relationship between the data elements is defined here, so the four classes become the logical structure of the data;
However, the logical structure of data structures is represented in high-level language in computer to realize the storage of elements, the logical structure of this data structure is called the physical structure (also called the storage structure) in the representation of the computer, to realize the logical structure between the data elements. Then there are two different representations in the computer: the sequential storage structure and the chained storage structure:
Data type:Represents a collection of variable values and defines a set of operations that can be done in this value interval. There are two types of data types in high-level languages: Atomic types and struct types
Atomic type:Just like the basic data type in C, (integer, real, character, enumeration)
Structure Type:An instance of a struct type has several components that consist of a structure, so a variable of a struct type is composed of multiple members, and each component can be different, a real number, an array, a pointer such as a struct, or a member can be a struct, such as a struct member being a struct variable. Then the structure type is a data structure and defines the operations (or API) that make up the

Read data structure (C language version)

Related Article

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.