PCC Notes
PCC Notes
Taosersauctere
Evezy 0S
dato
wi sikng
ltontainsmccnk visiting
ontains aaset
set of data elenentt
each element of ns
ike aay) in ovder to pebtom some specic o
Iike Seaxching o sorting opey?
eq. you necd to' calarlate av masta obtinad by gd
in'dilezent Subjects,ie need to traese
complete aray of anks &caleulote total ur
then, ue ill diide the surn by no. of subjecks
to fnd the
avg.
2) Tnsetion: Tnsertion can be defined a a process ot
adding the elemnenti to the Ds at cy loeatu
H he sie of DS, is n
then we en
data elenent to it
3) Deletisn: The proces§ of oemovng an elennent Aem thee
process o
DS is called doletton e dome at
location onyra
Tf ysu ty to delete an elemeut from the empy Ds
then undelpw OCcw.
ocen
4Seasching: The process of fmding the locaton of
element oithin aa DS is called geanching
Ihoe ae twe algoaithme to penfezm Seahg
Reach
Soatinq The the data in a
Speaihedo
Theention, gelecion Rs bubble SoYt
Fage Ne.
Date
o P: lenentat ar [e|$
ofP: lemuh
:O, 2o,
T$40,o
etunt
Page No.
Date
lprimitie
baiic pimaky) int cha,toat do uble
-Non-prioitiye (dexived)
clagsitcaton ot Ds:
Aecorhng of data
.According to homogene0 LQ
dynamic
Hhose who can exspand &thg al
duig erecution of prognam.
proqa
hereeetated aenmay toeato changei
pointer.
i s den cted a t p, & it points owt
mem ory location of Vagia ble stoed.
inear
All it's data elements fom a Seqeen ce ora
HP o illustrate string.
int main ()
aYray of char.
Il Creating
inq array &'. 'e'.'e''k','s '/o 4
Char atr
int;
fori=o; i<o;it+) aeleksJo
print f(^ c"arlit+):.
etn S
op:Geeky
featues
) An aYrau is a lineas DS.
An as y is an eq. ot stetic DS, &o the size of asrQy ts
alasays Hred. ialwaye emein Game atthe run t i t
3 An artay is a hemeaeneo de DS.
4Ttisa finite c&leation of similar data elements
’ Array ue Subscript siqn[J subseripl vasalle
Array s] stanteg it can storeup to eleymenti
Goch tlennt can be acessed thnugh it 's ssmtax number.
Index numbes alDays stet uith zoxo
Tn Clanguage, atnas ane stored mchas anay
that oehardled slkekty ditferont than otheays
tveyy char arauy o Sng hag ul chaacte
las t's agt charaoter hich marks the enel of slmg
Page No.
Date
t RecuYsion:
Slack
450
=2
top = 2 33 4
maxN) 4
to
Pugh operatiorn
emplypttT=3
Pop Operation
gtack
Once the
p
decremented
operatiom
1
is perbned pop-t top is
ack
Pop=0
Popdo
a) Cc)