A two push down stack machine,a 2PDA is like a PDA except that it has two push down stacks STACK1 and STACK2 . When we wish to push a character x into a stack,we have to specify which stack,either PUSH1 x or PUSH2 x. When we POP a STACK for the purpose of branching we must specify which STACK,either POP1 and POP2 (Read character from read only input tape).
Design View: By JFLAP Software Concept : aaabbb Case1: XaaYbb Case2:XXaYYb Case3:XXXYYY Case 1: Read first 'a' and replace it by 'X' Then read first 'b' and replace it as 'Y' What i am doing is .....Meaning of a^n b^n is " Equal no: of a's must followed by equal no: of b's " In Case 1 : I read first 'a' and First 'b'. Before reading Second 'b'....Should read Second 'a' .... Then continue the steps.....Finally 'B' reads....Machine will stop... Transitions concept will continue ......
Comments
Post a Comment