Abstract Data Type (ADT):
- ADT define as "A Mathematical model of the data objects that make up a data type as well as the functions that operates on these objects".
- Structured data type which may be a combination or collection of basic data types with a set of properties and legal operationsthat may be performed on it by programmer. Programmers own data type is termes as Abstract Data Type (ADT).
ADT = Type + Function Names + Behavior Of Each Function
- An Abstract Data Type Includes:
- Domain: A collection of data.
- Functions: A set of operations on the data or subset odfdata.
- Axioms: A set of axioms, or rules of behavior governing the interaction of operations.
Advantages of ADT:
- ADT is reusable and ensures robust data structure.
- Encapsulation ensuers that data can not be corrupted.
- It reduces coding efforts.
- The ADT is a useful guideline to implements and a useful and a useful tool to programmers who wish to use the data type correctly.
- Implementation details hiding.
Comments
Post a Comment