Chapter Study

BSC CSIT Semester 4 Theory of Computation () Questions & Answers | Past TU Exam Papers

Practice from Theory of Computation with detailed solutions and model answers from past Tribhuvan University exams.

7
Questions
40
Marks
Back to All Chapters

How can you define the language accepted by a PDA? Explain how a PDA accepting language by empty stack is converted into an equivalent PDA accepting by final state and vice-versa.

HardNumerical10 marks2076(TU Final)

Construct a PDA accepting language over {0, 1} representing strings with equal no of 0s and1s. Show by sequence of IDs that 0101 is accepted by this PDA.

MediumTHEORY5 marks2076(TU Final)

Define a Push Down Automata. Construct a PDA that accepts L = {a b | n > 0}

MediumTHEORY5 marks2078(TU Final)

Give the formal definition of Push Down Automata. How CFG can be converted into equivalent PDA. Explain with an example.

MediumTHEORY5 marks2079(TU Final)

Design a PDA over {x,y} which accepts strings defined by the language L={xnynxyn0}L = \{\,x^n y^n x y \mid n \ge 0\,\}. Show acceptance of xyxy.

MediumTHEORY5 marks2080(TU Final)

How is PDA to CFG conversion done? Consider a PDA that accepts by empty stack, P=({p,q},{0,1}, {Z},δ,p,z); with δ defined as

δ(p,0,z)=(p,0z), δ(p,0,0)=(p,00), δ(p,1,0)=(p,ε), δ(p,ε,z)=(q,ε),

Now construct an equivalent CFG.

MediumTHEORY5 marks2080(TU Final)

Construct a PDA that accepts string over Σ ={a,b} that contains equal number of a’s followed by equal number of b’s. Show acceptance of aabb and aab.

MediumTHEORY5 marks2080(TU Final)
Showing 7 questions

Unit V: Push Down Automata (7 Hrs.) chapter questions with answers for Theory of Computation (BSC CSIT Semester 4). Prepare for TU exams with our comprehensive question bank and model answers.