pushdown automata (pda) - srividyaengg.ac.in · unit iii-push down automata pushdown automata (pda)...

27
Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars. Context free languages are recognized using pushdown automata. Following diagram shows a pushdown automation. The PDA has three components: An input tape,A control mechanism, and A stack. From the input tape, the finite control reads the input, and also the finite control reads a symbol from the stack top.

Upload: vuongnguyet

Post on 09-May-2019

296 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

UNIT III-PUSH DOWN AUTOMATA

Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars. Context free languages are recognized using pushdown automata. Following diagram shows a pushdown automation.

The PDA has three components: An input tape,A control mechanism, and A stack. From the input tape, the finite control reads the input, and also the finite control reads a symbol from the stack top.

Page 2: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 3: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 4: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 5: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 6: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 7: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 8: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 9: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 10: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 11: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 12: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 13: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 14: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 15: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 16: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 17: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 18: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 19: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 20: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 21: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 22: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 23: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 24: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 25: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 26: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III

Page 27: Pushdown Automata (PDA) - srividyaengg.ac.in · UNIT III-PUSH DOWN AUTOMATA Pushdown Automata (PDA) As we learned, context free languages are generated using context free grammars

Sri vidya college of engineering and technology coursematerial(lecture notes)

Cs6503 Theory of computation unit III