What are data structures and algorithms

Source: Internet
Author: User

A data structure is a collection of one or more specific relationships that exist between each other.
The popular point is the logical structure of the data, such as what kind of structure the data is stored in memory.

General data structures: arrays, linked lists, trees, hash tables
Private data structures: stacks, queues, priority queues
Sort by: Insert sort, hill sort, quick sort, merge sort, heap sort
Graph: adjacency Matrix, adjacency table
External storage: Sequential storage, index file, B-tree, hash method
the algorithm is actually a method of accomplishing one thing in the course of programming , for example, in real life, when doing math problems, two people will complete the problem but they have a short time between them because of the simple method. In the same way, a good algorithm can reduce the space-time complexity of the program during programming.
The elements of the algorithm should also include speed, stability, robustness, correctness, poor, understandable, input and output, and so on.
Data structure and algorithm is a basic subject of computer linguistics, it does not belong to any language, it embodies almost all the standard language of the idea of the algorithm.

What are data structures and 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.