Home  >  Article  >  What is the storage structure of data?

What is the storage structure of data?

青灯夜游
青灯夜游Original
2019-06-05 11:28:3036860browse

What is the storage structure of data?

The storage structure of data refers to the representation of the logical structure of data in the computer. There are two different representation methods of the relationship between data elements: sequential mapping and non-sequential mapping, and thus two different storage structures are obtained: sequential storage structure and chain storage structure, which are the two most common types of data. Basic storage structure.

Sequential storage structure

The sequential storage method is to store logically adjacent nodes in physically adjacent storage units. The logical relationship between nodes It is reflected by the adjacency relationship of storage units, and the resulting storage representation is called a sequential storage structure. Sequential storage structure is the most basic storage representation method, usually implemented with the help of arrays in programming languages.

Linked storage structure

The linked storage structure does not require that logically adjacent nodes are also physically adjacent. The logical relationship between nodes is determined by the additional Represented by the pointer field. The resulting storage representation is called a chained storage structure. The chained storage structure is usually implemented with the help of pointer types in programming languages.

For more related technical knowledge, please visit the FAQ column to learn!

The above is the detailed content of What is the storage structure of data?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn