Professional Documents
Culture Documents
Dota Structure!: Linedr
Dota Structure!: Linedr
P Arays H TreeS.
Linked list +Granh
Stack
Queue
Línk List
2) Non- Lînear Dato Sbyucture :
4 In Non- Linear data structure, data elements_are
attachedin hierarchicalymanhêr
2l| WhereOS 0n non-linear ata styucture, mulbiale levels
are involved.
3Dato iterns Can not be traversed ín a single
These aye dificult to implement
5 Memory ís ulized in an
6]Er Tree, Crranh effitient ay
)Prímitive Data structure
It
de fines a set of nnitire elerments uhich do
not involve any other elements as its Subnarts.
4)Non-Primi tie Data structure
1 IE defines a set ot deried elements such
as array. Aray dato struckure defined
consist ö4 a set of similar tyne'of elements.
Static Datq Struture i
A1In static data structare the size of the structure
e content o# O the dota structure can be
madiffed
modiie uthguoithout
Snace allowedto it. changing the memoy
eg. acray
6 Dynamic data structure
Tn dynomic stncture the size af the stucurt is
not fked and cay be rnodified during the
Page
lloneratons nerformed on Pt
datd structures are desined to faci iitat
punomic
Dynanic in t h un time
echonge of data struckure
int a50:
ntr
nrint \n value o az"d, a;
ntn
Anhtfr
valute of_ntre'd
hnh("In valye of ntr 'd,k ntc);
QExolain
ynedef typede; keyword cath an ezann nle
keycJord
ipvedefnedkeqword
eristin Vàroudn give a meanin
gf,name to on n yourChrograM
31 Ta implerment th ynedef keyuord aucessf ullg
wil imnlcmentae a naone to an ecistng data
+you
hae to
tyne in the program code. cato
) Then the
ith the Compiler
name yhat
replace
hat you haue
the eisting data tyne
entire nlcat on. nrov1ded for he
# incbade, <staig. he
tynedef int aint; l de lared o new vanable of int
data tyne!
int mauh()
print ("1ech vidvan Tutoviol; ExomFle of tyne def keya
ord InIn);
int a = 0;
ain1b50, (;
atb; isi-d")
print ("Sam
retun.0;
+incude <stdio.h
# incudeestdlib.h
VDId main C)
CspnunM
print ( Griven nolynomial is ln"
tr izo;i<-hum itt)
iGatraycr]20)
etef else (aayci<0)
pint
el_e
nnntfdx^dahs
nclnfIn Sunn ef he nalynomial= af nps