search
HomeCommon ProblemWhat can data structures be logically divided into?

What can data structures be logically divided into?

Mar 14, 2020 pm 01:33 PM
data structure

What can data structures be logically divided into?

Logically, data structures can be divided into two categories: linear structures and non-linear structures.

The logical structure of data: refers to the data structure that reflects the logical relationship between data elements. The logical relationship refers to the before and after relationship between data elements, regardless of their storage location in the computer.

Linear structure is an ordered (ordered) set of n data elements. It has four basic characteristics:

1. There must be a unique "first element" in the set;

2. There must be a unique "last element" in the set;

3. Except for the last element, all other data elements have a unique "successor";

4. Except for the first element, all other data elements have a unique "predecessor" .

Linear structure in data structure refers to a data structure in which there is a "one-to-one" linear relationship between data elements.

Corresponding to the linear structure, the logical characteristic of the nonlinear structure is that one node element may correspond to multiple direct predecessors and multiple successors.

Commonly used linear structures include: linear list, stack, queue, double queue, array, and string.

Regarding the generalized table, it is a non-linear data structure.

Common nonlinear structures include: trees (binary trees, etc.), graphs (nets, etc.).



The above is the detailed content of What can data structures be logically divided into?. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools