Embedded rookie Advanced ①---algorithm entry Foundation

Source: Internet
Author: User

1, according to the logical relationship between the data elements can be divided into 4 logical relations:

"One to one": linear structure

"One-to-many": Tree-shaped structure

"Many-to-many": graphic or mesh structure

"Belong to one set, no other relationship": pure collection structure


2, according to the storage classification in the computer:

Sequential storage: logical neighbors and physical locations are adjacent

Chained storage: Logically adjacent, no physical location required

Index storage: Data elements are stored at the same time, to establish an index table, the index table generally includes keywords and addresses and other information (the keyword uniquely identifies a data element)

Hash Store: Calculates the storage location of the data element directly from the data element's keywords. Thought: The key of a data element K as a variable, after the function of F (k), to obtain the storage address of the data element


3. Algorithm Features

Poor: A valid input value for any set of values, must be able to end after the execution of a poor step

Deterministic: The algorithm has only one execution path for each case and does not have two semantics

Feasibility: All operations of the algorithm can be implemented by a finite number of basic operation operations

Input: 0 or more inputs

Output: One or more outputs must be available


4. Algorithm evaluation

Correctness

Readability

Fault tolerance: When entering illegal data, the algorithm is able to react or process appropriately

High efficiency: Saves time and space

Embedded rookie Advanced ①---algorithm entry Foundation

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.