Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 5 marks ] Convert the following grammar to be in Chomsky normal form. S ABD, A S , B D , D d a

[5 marks] Convert the following grammar to be in Chomsky normal form.
SABD,AS,BD,Dda
,Aab,Bbd,B
[4 marks] Let M=(Q,,,q0,F) be defined as the following DFA, where
={0,1},Q={q0,q1,q2}, with q0 the start state, F={q2}, and transition
function given as a table below.
The language aceepted by M is described by the regular expression 0**1+.
Convert DFA M to a context-free grammar that generates the same language.
[5 marks] Convert the CFG from Question 2 to a pushdown automata
given as a state diagram that recognizes the same language.
[3 marks] Let E={aibj|ij}. Show that E is a context free language.
[3 marks] Demonstrate that the set of context-free languages is not closed
over the operation of intersection. Use {anbncn|n0} is not context free.
[6 marks] Prove that the following two different versions of pushdown
automata machines are equivalent:
(1) the PDA must have an empty stack, consume all input, and be at an
accept state in order to accept an input word;
(2) the PDA is allowed to have a non-empty stack, but consume all input,
and be at an accept state in order to accept an input word.
(Hint: you need a dollar sign to help mark the bottom of the stack!)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

Distinguish between a LAN, MAN, and WAN.

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago