Basic knowledge of data structures

logical structure

Logical structure refers to the relationship between data elements in a data object. There are the following types in detail
Set structure: elements are not directly related, they are equal to each other
write picture description here
Linear structure: elements have direct one-to-one correspondence
write picture description here
Tree structure: there is a one-to-many situation
write picture description here
Graph structure: many-to-many relationship (there is a directed graph and an undirected graph To distinguish, the schematic diagram of the Java GC recycling mechanism used here, the Java GC implementation is based on directed graph)
write picture description here

physical structure

The physical structure refers to the storage method of the logical structure of data in the computer; it is divided into linear storage and chain storage structure.
Sequential storage structure:
write picture description here
Chained storage structure:
write picture description here

Five characteristics of the algorithm

Finite Deterministic Feasibility Input Output

Algorithm Design Requirements

Correctness Readability Robustness High Efficiency Low Storage

time complexity

The time complexity of an algorithm refers to the time measurement of the algorithm, which represents the growth rate of the execution time of the algorithm as the scale of the problem expands.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324686664&siteId=291194637