Reputation: 420
I have heard two students arguing online in a social network site whether ArrayList is a data structure, however, they did not come up with conclusion.
Student B started the topic with statement "ArrayList is not a data structure", the following is points he made
There are few points Student A (Supporting ArrayList is a data structure) made. He starts with giving definition of data structure (Student A provides reference link 1,2,3).
Their argument ends with one of them stop commenting on this topic.
I would personally like to know whether "ArrayList" can be classified as Data Structure or not. Why or why not?
Under what rules, a "Data Structure" should not be classified as Data Structure?
Ref link 1: Definition of Data Structure by NIST
Ref link 2: Definition of Data Structure here by Encyclopædia Britannica
Ref link 3: List of data structure by NIST
Upvotes: 3
Views: 3126
Reputation: 164
It is indeed a data structure in fact the very links you refer clearly state it. Any organization of data qualifies in my opinion. In computer science we have common abstract concepts more commonly studied but there is no restriction on how you organize or structure data for efficiency or use.
Upvotes: 3