Introduction
Introduction
Examples
6
Examples
7
8
What is a data structure?
• A data structure is a way to store and organize data in a computer so that it can be used
efficiently.
• What do you think efficiency means here?
Ultimate goal -- to write efficient programs. In order to do that, one needs to organize
the data in such a way that it can be accessed and manipulated efficiently.
• List (ADT)
– Store a given number of elements of any data type
– Read elements by position
– Modify element at any position
• Arrays (Concrete Implementation)
• Linked List (Concrete Implementation)
• Abstract Data Types are entities that are definition of data and
operations but do not have implementations
12