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