Data structure review notes-Chapter 1

Source: Internet
Author: User

1. What is data structure)

A Data Structure is a set of data elements with one or more specific relationships. It is a mathematical abstraction of objects to be operated on.

2. Relationships between common data elements

Set: data elements in a set have no other relationships except that they belong to the same set.

Linear: there is a one-to-one relationship between data elements.

Tree Structure: there is a one-to-many relationship between data elements.

Graph or mesh: There are many-to-many relationships between data elements

3. data structure definition

Data_structure = (D, S)

The data structure is a binary group, where D is a finite set of data elements, and S is a set of relationships on D.

4. What is a data type?

Data types include a set of values and a set of operation sets defined on them, that is, the data structure of the Operation object and corresponding operations.

5,AlgorithmFive features

Poor, deterministic, feasible, input, and output

6. algorithm design requirements

Correctness, readability, robustness, efficiency and storage

7. algorithm efficiency measurement

Algorithm time complexity + algorithm space complexity

Algorithm time complexity: The measurement level of the number of repeated executions of one of the deepest original operations in the algorithm. t (n) = O (f (n ))

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.