Professional Documents
Culture Documents
UNIT 1. A Computer Program DSA Lec
UNIT 1. A Computer Program DSA Lec
UNIT 1. A Computer Program DSA Lec
DATA ST R U C T U R E S A N D
A LG O R I T H M S
INTRODUCTION TO
DATA STRUCTURES
• A data structure is a
particular way of collecting
and organizing data in a
computer so that it can be
used effectively.
• It is named location that
can be used to store and
organize data
DATA
integer
3.14
“Hello World”
float
234
string
PRIMITIVE DATA STRUCTURE
Primitive data structure
- These are predefined integer
pointer string
NON PRIMITIVE DATA STRUCTURE
Non Primitive data structure
- These are data structure LINEAR
GOOD COMPUTER
understand.
PROGRAM
• The process of preparing and feeding the
instructions into the computer for
execution is referred as programming.
There are a number of
FEATURES features for a good
FOR A program
GOOD • Run efficiently and correctly
COMPUTER • Have a user friendly interface
PROGRAM • Be easy to read and understand
• Be easy to debug
• Be easy to modify
• Be easy to maintain
A Good Program is a combination of both algorithm
and a data structure