Abstract Data Type(ADT)
ADT is specification of a set of data and the set of operations that can be performed on the data.
- Abstract Data Type is an extension of modular design.
- The basic idea of implementing ADT is that the operation are written once in program and can be called by any part of the program.
Uses of ADT:
- It helps to efficiently develop well defined program.
- Facilitates the splitting of the complex task into a number of similar sub-task and also simplifies testing and debugging.
List ADT:
List is an ordered set of elements. the general form of the list is,
A1, A2,A3,......AN.
A1 - First element of the list.
AN - Last element of the list.
N - Size of the list.
If the element at position 'i' is Ai then its successor is Ai+1 and its predecessor is Ai-1.
No comments:
Post a Comment