Introduction To Data Structure
Introduction To Data Structure
Structure
Dr. Nitin Paharia
Associate Professor, Department of CSE,
PSIT, Kanpur
Outline
• Basic terminology
• What is data structure?
• What is the importance data structure?
Algorithmic Problems
• A problem is a pair of input specification and output
specification
The problem of search consists of the following specifications
▶ Input specification: a set S of elements and an element e
▶ Output specification: position of e in S if exists. If not found,
return -1.
Algorithms
An algorithm solves a given problem.
▶ Input ∈ Input specifications
▶ Output ∈ Output specifications
Point to ponder
1. Estimate the number of messages exchanged for status level in
Whatsapp.
2. How much text data was used to train ChatGPT?
We need to work on data
• We process data to solve our problems.
• Example:
1. Predict the weather
2. Find a webpage
3. Recognize fingerprint
Are the data organized?
• Disorganized data will need a lot of time
to process.
• Point to ponder:
How much time do we need to find
an element in an array?