Make a little progress every day-Visualize basic concepts in the Data Structure

Source: Internet
Author: User

Basic Data Structure:

The village name information table and student renewal table are abstracted into linear tables;

A family relationship and an organization can be abstracted into a tree;

The relationship between individuals in a group and the transportation network between cities are abstracted;


People also refer to the village name information table, Student name table, family relationship, the relationship between individuals in a group, and the traffic network between cities as data;

Each data element (one row in the table) in the "tables" table contains four data items: Student ID, name, score, and remarks. (Data items are the smallest unit of data)


Special linear structure:

STACK: a stack of books on the table, the top layer (the top of the stack)

Queue: the first person in the queue buys a ticket and the new person enters the queue at the end of the team.


PointerIt is used to identify the digital codes of different storage units, that is, the address of the storage unit. It is similar to the house number of different rooms in a building.

The content of this pointer can be used to find and read this data element (the Pointer Points to this data element)


Custom Data TypeAnd use this data type as a basic data type.

Define type employeetype {
Char name [10];
Int age;
Int score;
}

Example: The new data type in the villagers' information table

Use this data type to define a variable:

Employeetype X; // X will be used in subsequent programs. x specifies a storage area of about 14 bytes.


Make a little progress every day-Visualize basic concepts in the Data Structure

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.