Data Structure: What is it?

Source: Internet
Author: User

What is the data structure? What is the relationship between data and structure?

The data structure must first define two things: Data and structure.

Data is a group of meaningful information. Data is used as information units.

Structure is the relationship between information units and information units.

Components are expressed in the most abstract form:

Ing: one-to-one, one-to-many, and many-to-many.

Sequential relationship: A-> B, B->

Data structure is a methodology that constructs information units.

Common data structures include:

One-to-one, (Queue): 1, 2, 3, 4, 5...

Based on the Content orderliness, it can be divided into ordered queues or unordered queues.

It can be divided into one-way and two-way in order.

The ing methods can be divided into location ing, pointer ing, and function ing.

 

One-to-multiple (tree structure): 1-> (2, 3)-> (4, 5), (6, 7 ))...

Many-to-many (graphical structure): (1, 2)-> (3, 4 )....

 

Data structure functions:

1. Organize information in a beneficial way.

2. The so-called beneficial is to helpAlgorithmEfficiency (development efficiency and execution efficiency)

3. structure, which may be the information itself

 

Reasons for converting one structure to another:

1. information may need to be changed

2. The purpose of structure transformation is always to improve the efficiency of common algorithms.

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.