02 Abstract Data Types
02 Abstract Data Types
1
Text book:
– Data Structures Using C++ by Nell Dale, Jones and
Bartlett Publishers. 3rd Ed.
Use
Abstraction:
Hiding details
ADTs and List as ADT
• Abstract Data Types
• What is a List
• List as Abstract Data Type (ADT)
• Operations on List
• Sequential implementation of List
ADT = MRF of a Data Structure
• Abstract Data Type is the MRF (Minimal
Required Functionality) of any Data Structure
along with some operations.
6
Abstract Data Types (ADTs)
Precondition : None
Output : List
Input : List
Output : true/false
List ADT - Operations
• isFull(List) : Returns Boolean value
Function : Determines whether List is full.
Output : true/false
Thank You!
20
Why ADT when List can Work?
• Abstract Data Types invites us to think about
the data structures with the operations of
your choice.
21