This question was the last straw; and I thought about it for a long time,
Why do people think of “algorithms” and “data structures” as something that can be separated from each other?
I see a lot of evidence that they are shared in the minds of programmers.
- they request "Data Structures and Algorithms."
- they refer to Data Structures and Algorithms as separate university courses.
- they "know the algorithms" but are "weak in data structures" (cannot find the link, sorry).
- and etc.
In my opinion, “Data Structures” are algorithms, since the concept of “Data Structure” refers to algorithms for managing data that enter and from a structure. But the opinion does not seem basic. What am I missing?
Edit : Unfortunately, I have a poorly worded question. The separation of data structures and algorithms in programs that people write is natural, because, well, the former are data, and the latter are functions (and in semi-functional structures such as STL, the core of all this).
But the above points and the question itself relate to how people think, to how they arrange knowledge in their heads. This should not even apply to coding.
Here are some links where people separate “algorithms” and “data structures” when they are the same:
- Changes: algorithm and data structure
algorithm data-structures
Pavel shved
source share