Data Structures Am
Data Structures Am
Class
Data
Structur
es
WHAT ARE DATA
STRUCTURES?
OBJECTS that you can define to make working with
data easy and efficient.
Example:
When you as a shopkeeper want to store the
information about your stock, you would do so in the
form of a table.
STRUCTURE OF
STRUCTURES
SYNTAX ATTRIBUTES FUNCTIONS
typedef struct Properties The
Name that creation
organize the function
{ stored data returns an
Can be of object of
int atri1; some user- the type
defined type Name
char Make the Auxiliar
process of y
atri2; working with functio
data ns
Structure Stacks are a last-in-first-
#1 Stacks out type of data structure
The primary functions of
a stack are:
Push
Pop
Pea
k
The
bounda
ry
conditio
STRUCTURE
#2
QUEUES
QUEUES ARE A FI RST-IN-FIRST-OUT
TYPE OF DATA STRUCTURE
THE PRI MARY FUNCTIONS OF A
QUEUE ARE: ENQUEUE
DEQUEUE
PEAK
THE BOUNDARY CONDITIONS
TO BE EVALUATED ARE
OVERFLOW
UNDERFLO
W
Structure The solution for infinite
data Based on the
#3 Linked auxiliary structure of
NODES
Lists individual elements of
the list
have two attributes,
value, and previous
pointer
Major algorithms useful in
We
listscan
areadd an element
to any
Traversing
point in the list.
Reversi
ng
Insertin
g
An
interesting
addition to
this
THANK
YOU!
Do you have any
questions for me
before we go?