ADT is a useful general class which makes it possible to add or pop element from a queue in a certain sequence, whether it is a first added first removed like class Queue or the reverse one like stack.
ADT is useful not only because it can be applied alone but also because it can be used in other class just like Tree in which you can put the children which is a list of elements that you can add or pop new ones to or from. It is true that ADT is a basic component of the class Tree.
Also the property of sequence ensures that all the elements are allocated in order. This property ensures that in the hierarchy things the property of the different levels can be kept and changed in order.
In the following assignment to be done, ADT should very useful and I will use it well to handle the following work.
没有评论:
发表评论