| |

VerySource

 Forgot password?
 Register
Search
View: 4042|Reply: 10

What exactly is a data structure?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-9 18:40:01
| Show all posts |Read mode
After studying the data structure for a semester, I can't help wondering what exactly is a data structure? Why algorithm + data structure = program? What's the use of learning data structures?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 18:30:01
| Show all posts
"Data structure is a way for computers to store and organize data. Data structure refers to a collection of data elements that have one or more specific relationships with each other. Generally, a carefully selected data structure can bring higher performance or Storage efficiency. Data structure is often related to efficient retrieval algorithms and indexing techniques."
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 18:45:01
| Show all posts
What structure is the data stored in? ? To make it easier to read, all use some special structure, this is the data structure, that's it. . .
Algorithms, the problem-solving ideas designed to solve certain problems (such as facilitating writing, improving efficiency, etc.) are over. . .
Just go to an OJ platform and do some questions. You will find that a very simple question is not possible here with the code you think is very correct, why? Algorithm problem, inefficient. So the algorithm is the soul. .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 19:00:02
| Show all posts
For example, how to build a tall building?

You can put each brick next to each other, if you put too much, it will become a big brick, the building will be taller, but you can't live in it. .

It can also be spaced a little apart every two bricks, and it can also be built into a tall building, using gaps to put things.

There are other N ways, this is the structure. .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 19:15:01
| Show all posts
If you don’t go deep yourself, it’s the same for a few semesters.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Hong Kong

Post time: 2020-9-5 19:30:01
| Show all posts
Programs are used by computers to process data. The data representation method is to use the data structure, and the data processing method is the algorithm. Therefore, a computer program is a combination of presentation method and processing method.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 19:45:01
| Show all posts
In the final analysis, the computer is to solve the problem of data processing. The data structure is the abstraction of data from our programmers. For the computer, it is to achieve better calculation and storage to increase the speed of the computer.
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-9-5 20:00:01
| Show all posts
Without a sieve, it is difficult to pick stones.
There is no box, so it is not easy to hold the sundries.
There is no road, it is not easy to drive.

The data structure is like a sieve and a box and a road.
With it, the world becomes clear, convenient, and standard.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 21:00:01
| Show all posts
This thing requires an epiphany.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 21:45:01
| Show all posts
The data structure is the way data is stored in the computer, and the algorithm is to process the data.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list