I know three terms that have to do with storing objects or data. I'm not sure I understand the exact differences between the terms. Please confirm if what I'm about to write is accurate.A data structure is a group of data types or objects of the same type, grouped together in some formation.A collection is the same as a data structure (I don't mean a Java Collection, I mean a collection in the more general meaning).An aggregate is an object containing a collection or data structure, providing an interface to communicate with the inner data structure. For example, the object someContainer, which contains an inner ArrayList, is an aggregate because it contains a data structure, encapsulates it, and provides an interface to manipulate it.Is all of this accurate?
Collection vs data structure vs aggregate
data structures;collections;aggregate
A Data Structure is any structure that holds data.  Data Structures are distinguished from each other by their memory usage and performance characteristics.  For example, the lookup performance of a Hash Table is O(1), while that of a balanced binary tree is O(log n).  A Collection is any data structure that can hold zero or more data items.  Generally, the data items will be of the same type or, in languages supporting inheritance, derived from some common ancestor type.  Collections can utilize certain data structures, such as Hash Tables and Balanced Binary Trees, to improve their memory and performance characteristics.An Aggregate, in the general sense, is a whole combined from individual elements (the individual elements can form a collection).  Examples include Sum and Average functions, the results of those functions, and the process by which data is combined in a data warehouse to speed up retrieval. 