Data Structures-Basic concepts

Source: Internet
Author: User

Baidu version:

data structure is computer storage, organization data the way. Data structure refers to the existence of one or more specific relationships between the elements efficiency algorithms and index technology related.




Some important concepts within the data structure:

1. Logical structure and physical structure

1.1 Logical Structure (emphasis)

refers to a data structure that reflects the logical relationship between the elements of an element, in which the logical relationship refers to the back-and-forth relationship between data elements, regardless of where they are stored in the computer. ( Baidu version)

There are several main relationships:

Set Relationship:

Mathematical representation of the set relationship:

Linear relationship: There is a quadratic function relationship between two variables, it is said that there is a linear relationship between them . (a mathematical concept) we can understand that all points are distributed in a straight line

Tree relationship: Like a tree, roots, leaves, leaves .....

Graphical relationships: No direction, no order, many-to-many relationships

1. 2 Physical Structure: Mainly storage aspects, in the data structure of the temporary regardless of

1.2.1 Sequential storage: divides a block of memory into memory and then continuously stores the data, like an array

1.2.2 Chain-Store

Also called the link storage structure. The data element of a linear table is stored in a computer with a set of arbitrary storage units (this set of storage units can be contiguous or discontinuous).
It does not require logically adjacent elements to be adjacent to the physical location. Therefore, it has no sequential storage structure of the weaknesses, but also lost the sequential table can be random access advantages.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Data Structures-Basic concepts

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.