Partial preview of the text
Download Data Mining Algorithms and yeas and more Schemes and Mind Maps Data Mining in PDF only on Docsity!
Unit-2 | ® Conceph Ecowy all of Stack, —? A chack Wa Jtnew. data, otructure ™M which ay clement ney 4 be susected or delek) at one end. Le, The ebermonts aro removed fom a stack m the revense order of that m slid, ty WAL mserted mp the atack. . 7 Shack yse8 & variable called top which pel Leporach | —> Top 48 troementel while pushin (Gnserht ) an demeref ; | we get a clegemetcted Te rps (Asletng) lai 9 > A Stack follows the | prinetole of bast-m—firs-oud (IFO) gysdee, 4 —> PUSH and POP ane tuo eheume used for msection ard delehon | operations mm stack respectively} Example: oo | Es =. =A=I __ a. EE 7 \ PUSH(A) wPPUSH(8) = a PUSH(c) ~—st¥) POP(C) vy) Por(B) | fig. push jp pi op ations m shack Dicadions of stack: ~ _ > To ewaluate the postr and prefix Expressing, —» To Keep the page-vietted, 's f web browser. | — To perform the undo Sequence MQ fered editor, —> sed sm recursion. " ~> To check dhe correctness of parentheses: sey uonce > Te poss the ponarnebers beboeon tho Land) . ms mC program 4 Scanned with CamScanner