Tradition Implementations of Algorithms Quiz

Question

What is the shortcoming of the traditional way of implementing data structures/algorithms

It is not optimal from a performance stand point because extra work needs to be done when the data structure is iterated

Performance is an orthogonal topic in this situation

Algorithms are tied to data structures because the algorithm needs to know the internal interface of the data structure

Correct!

The code for the data structure is verbose

The data structure simply contains the fields, so there is no verbosity

The data structure is not sufficiently encapsulated

The data structure is sufficiently encapsulated since it does not store any fields outside of its instance