What is a data structure

Source: Internet
Author: User

1. There are many explanations for the data structure, this article adopts the definition of the undergraduate textbook, that is, the data structure is a collection of one or more specific sets of elements. This relationship includes the logical structure and the storage structure.

2. The logical structure is that the data structure abstracts the logical relationship between the elements in the real problem, and forms a finite set of elements and data relations.

3. Storage structure is the data structure according to the different storage methods in the computer, divided into sequential storage and chain storage.

Sequential storage represents a logical relationship between data elements by means of their relative positions in memory, and chained storage represents a logical relationship between data elements by means of pointers that indicate the storage address of the element.

4. The design of any algorithm depends on the chosen logical structure, and the implementation of the algorithm relies on the storage structure adopted.

What is a 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.