Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

ps-1

utsoou tn te DS -

he tesm eta" greßer to tsonemted,


Antosmation eithen stocds tort w9Utton
be mbe store
Dota Ccm ond byytes
fosm of blth oleuj'o or fat
pofer, of
-electroie
memoy besong mnd
s sed
stuctare
term leta dota s s
Btored
The woy
olesribe the used
ta alyoitm
term fracoBed.
nd the way dota 5
desoube the algoihms
staturs mal
Data
thterelted
Detoe Struture
Dote struture tsufeserthfen
betueen

t dete.
logical elemonts data
Jmivjcual truGure
Jn ethe ll lete ttemg
DS-2
thet censjlens mot only the elemmots
stosed but also ther elotendib to cach

bormputn
amd uplated -fiiontg
chm
To dlevelop
Wee shenld dn rapriate DS os th at

stuckre = Prgram
|Algortmt Dota
the buisding
buloleng hu or pryan.
blocky of ny sw
Datu stuctnescre the

bat Stratres
lybes of
bota structurea mosonlly liviofd

into tuo broad categoies :


. Pimitve lata strytture

Non- brimtive dota tretco


2.
Data strutre

Non-prjandtve Ds

har Int
DS-3
Babic Tesmime
salue
Data;-pote feu to d
d

cy n the olot. Ex.


Values w
by the hent.
Merk obtaad
tate velue
odih cen
pertes
beme
Fecerel
for tte
Field ; A feld of dte
dingle piece
centautn of record
sjet
olleom fald,
reorel s dota tjes,
Pecerd: 4

colletin of date

mcss forje
Foo
AyEnfe
stock guaue, gne
(RAM
idotaStrutres Cortiyub
hle)
e data
conbgusud Non- 2.
Centigusu 1.
frndamental brganiztn to Aits
olta-They
tyes ; of
)
d
coletn The
ate
boganizaten
we clatee of
f
cwosk.
n wth
kgrimaoy
lled
dea feld
field Sueh
a fle Buh
tmine cmigaly moy
ecord
sn n the
value
n buttom, fields
d centa'n
condin mg fele un
ecord Each
n Lentrast, items Am a DS-5

stautue Scatteed tn memory, lontiguous


ut link to each other hn semeay.
For Example: A inked list is enn
contiguey data stutre Hene.
nen-
lst are lnked tegeher
the nocles of tn each nocde
bohdey stored
lsing
a (3]= {1, 2,3
int
1 22|3)

Char nne 20]:


};
dta={22,"Ajy kunor sharna":
gbaut student
224jay kumar sharma

Cotueus strucres

hend
23
2000
Non- contyuoe
ps-6

Linked Liet
4

(B

G
Tree

C
Built-in Dota Typesin
Built-jn 'tset telll us thott
The ten
tyhes ae
a defned
these categoyi of dta
by the brgannhg Romgunjeliectly scd
at

Theie otota tjbes cam be tore


gramm to declare dnd
by the
ifterent Varjables th prgn.
trimcny or brimihe
is also called
These dlata ypes faste
dete dyes. dn data, The e
Rsecute operatons
to
ßferent for anch fgammhy Aenguga
DS-7
Differt Built-im Data-Types
douhle, 8oid- cre the mest
int, cha, lot,
es
basic md lomnen built-n dota
prgemg oguge
Am evoy

(Veid
char
Unsigradint
nsined
not sart
c/ct oloeg
Note; cjctt
double
bata
ormthe duta tpe.
Afent gromcertun data tpes aifl
there ane to them sn
aplied
that con be cnd itorge
altn range
space.toThese ane:
Ssder
"short

"Signed
"unsignad

You might also like