1 Intro
1 Intro
Vani M.
Data Structures - Introduction
5
Basic Terminologies
Data Structure:
- Data: are simply a value or a set of values of
different type which is called data types like string,
integer, char, etc.
- Structure: Way of organizing information, so that it
is easier to use.
-In simple words we can define data structures as
● Organizing data in such a way so that data can
be easier to use.
Basic Terminologies
• Data Structure ..
- A data structure is a particular way of organizing
data in a computer so that it can be used efficiently.
7
Why Data Structure
8
Study in Data Structure
• Compound
11
Data Structure: Compound data
Classification of Data Structure ...
13
Types of Data Structure
• Array: is commonly used in computer programming
to mean a contiguous block of memory locations,
where each memory location stores one fixed-
length data item. e.g. Array of Integers: int a[10],
Array of Character: char b[10]
14
Types of Data Structure ...
Types of Data Structure ...
ked List: Could alternately used to store items. I
• Linked
ed List: Could
list space to alternately
store itemsused to
isstore items. as
created In linked list
is neede
space to store items is created as is needed and destroyed when
destroyed when space no longer required to
space no longer required to store items. Hence linked list is a
stor
ms. dynamic
Hencedata linked list
structure is acquire
space a dynamic
only whendata
need. structur
ce acquire only when need.
15
Types of Data Structure
Types of Data Structure ... ...
18
Typesof
Types ofData
Data Structure
Structure ......
19
Types of Data Structure ...
20
Types of Data Structure
Types of Data Structure ... ...
21
Types of Data Structure ...
22
Types
Typesof
ofData
Data Structure
Structure ......
Weighted Graph:AAgraph
Weighted Graph: graphhaving
havinga weight,
a weight,
or or numbe
number
associated witheach
associated with eachedge.
edge
23
Selecting a Data Structure
24
Thank you.
25