Professional Documents
Culture Documents
Lecture #1
Basic Data Structures
By: Mohammad Shabaz
Introduction
• What is Data Structure?
Data Structure is defined as implementation
of ADT(Abstract Data Type).
• What is ADT?
Collection of values and Operation perform on it.
An ADT, is a logical description of how we view
the data and the operations that are allowed
without regard to how they will be
implemented.
How is ADT differs from DT.
Abstract Data Types Data Types
• Traversing
• Inserting
• Deleting
• Searching
• Sorting
• Merging
Some Quick MCQs
1. Which of these best describes an array?
b) -1
c) 2
d) 1
3. In general, the index of the first element in an
array is __________
a) 0
b) -1
c) 2
d) 1
d) Algorithm
4. A mathematical-model with a collection of
operations defined on that model is called
a) Data Structure
d) Algorithm