What does abstract data type means?

Answer Posted / s. kabir

ADT is a programming model for some real life entity.
Commonly used for Collection of elements e.g. List.
It defines the data requirements to hold data about the
entity, the operations to be performed on the entity, and
the set of rules( i.e. specifications) to be assumed for
defining data and operations for the entity.
A particular data type (e.g. integer, Decimal )is not
considered. The actual implementation of operations is
hidden from user.
e.g. List
Data requirement : collection of elements in the form of
array or Linked list (type not mentions)
The operations: AddElement, RemoveElement, DisplayList,
InsertElementAt etc.

Thus, in summary, ADT encapsulates the Data and Operations
in some form. The user knows what operations can be
performed and not how they are implemented.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist synchronized?

536


What type of algorithm is binary search?

458


Differentiate between list and map.

588


Which is faster hashmap or hashtable?

505


What can be stored in an arraylist?

463






Which sorting technique is faster?

491


Which is faster hashmap or treemap?

481


What is scalar example?

515


Define a complete binary tree?

528


What is binary tree in computer science?

482


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

530


Is red black tree balanced?

497


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

506


Why is hashset not ordered?

490


Which is better array or linked list?

477