Tope Date Page No
STACK
|Repusentalon
pevalon Puse ,Po CAqo)
Notation 31 ype Numeucay.
Inten - onyusim
Rebuontatin
AAay ink Lst.
One end iit
Top s Shack
Repautud by tuoo oys
inedlist
Ay Stock con be ubuunld n mmory
ubd
Hhe Stak 1S naitanud by
SIACK
a. poirte Vaiable JoP, huch Containe koaon
Tol Elemest
Vaab MAY STK üwwd
hell STACK
20
Teacher SSignalure
Top [3)
LovER fiouw
in stact
DELET>TofzNU
LpoP
UNDE RFu
Top - MAXSTK
inked tiit:
Stuck con te Imyamenied Ding Smgly tirk hit .
The INFO fbd Jhe node hotd h eleme
Stack - LINK fild bolel h add. o nert nod
Povte Liok ut behaues a Top Ponis Vavob
Bottom STACK
Tof
INO LINK
NOLL
PUSH (I0st )
ToP
oP (dolot )
Regave,
Toprc Date
Page No
Pu`H & Pof ImplEMENIA [IDN,
PUsH -
Tnset
k-Read
Top ' MAX Top Inset
Paint
Exist
oveaao 5
(op
2) Read Data To 2
3) ToP Popt|
4)SIACE LToP DATA.
s) Exist
Delet
DTE ToP 2 NyLL
Paint Uhdulo -
Ex ist
|2) SIACK LIoP] NUL
3) ToP To
4) exist
STACK NoT L 1. CATION TNfIX
Conabt PRE fIX
In to Post
- Post to Infix
Past fix
)Math matelas Expaessim
) Stack Eypeu in th Lhopuat
Tnfix - A+ 8
opuate
ojaand
Post & A8
Alqo
'On do stck & add )
PUSH (
Soon
to end d 'Stock Lto k
2- Scan's Le to Right &epea
3 T! an opuond i encaunted
ad it to R.
opualos O i Encountuw
4It an siack.
On-to- +the
(aJ Add obeaor
Toplo
b I4 anothe. opeuatoo Exitt Neu)
opuato has las Aquas pudany than pop
Stack
add o RA fush nes oþeala anto top o
Sack
5) Exi.
Pecaderu
Expo -
Inix do Post i
A-8(C% DAE)
LR ABCDE A*l- Ans Higk
\
C
AABA -D+ EeCGt H)
R= Aß&G
AB AC* D-E F/4HEI+
Sock
Ad nstok
Teacher's Signature.
9 A+ (B+C -(D/EaF)4 G +
R= A BC
u seedene Les ) then R= ABC #
Pop (4)
head
> Puh (-) into s Pop (*) as (-) has leas
R ABC DE
ue to
highu Plewde.
()hen PubA
R= ABC* DEFA/
(3) Push
R= ABC * DEF A G*-H
4)
hale hauy highsk acarduna
tAan ath opetoy
R abt de
rPush
3)
R- abt de-t7
Tafiy
San 's' Right do u
2. oheand
opeand Encouoted Gdd do R
oboator tes has les
PacadencL Then poP faom slack
and add to R.
Post 2 lus
Pr'n
’ = (A* 8)+ c
<-RtoL
Entity R EefA*+
Ra t kACB
Topic Date Page No.
Ex A$B C- D+E EJ(GtH)
JE f+ GH
3
tt HizH Peees dles
ABCO Ef+ yH
Post fix
) Read R fiom at to
ight
Jf opuand Encourntiaol put onlo tack
3) IF opuator
Erceuntuol , hn
bþ two top lmuts fom Staek
b) Eualual
Expeim om by obead opeator
) Puih suult
back on saek.
Page No.
Topic. Date.
3,C:4, e
AB+ C DI fox Az 2, B
AB*CXD
’Lto R
+
A+B
A ) 2+3
z 5
2) 5c
5
5U
3)
Popaut
K » 5,6,2t , 12 4, /
2
6+2
8
5
SyBOL Scanned Stack.
5 5
6
5,6
2 5,6, 2
+
5,8
2)
8
5
2) SyebL Stack
3)
|2 12. so,l2
]8 z |2/4 9 40, 12,9
31
3 Uo-3
4,0
) 34
37