Abstract Data Type
Discussion 6
Abstract Data Type
Abstract Data Type (ADT) is a mathematical model of a certain class of data structures that have similar behavior; an ADT is defined only by its operations, not by its implementations.
Understand Abstract
Car
Ferrari 458
Abstract
Implementation
Four wheels
Can carry passengers
Need a driver to drive it
Has an internal combustion engine
...
List
Set
Stack
Queue
Map
ADTs are Tools
Scissors, Knife, Axe, Saw
Task: Cut a piece of paper in half...
Choose the right tool!
Worksheet
Keep the same philosophy
let’s start the worksheet