ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 09 May 2017 My Price 9.00

method to convert a DFA to a CFG

1.consider the following method to convert a DFA to a CFG

 

1. Consider the following method to convert a DFA to a CFG .LetM = (Q,Σ,δ,s,F)beaDFA.Construct a CFG G with:(1).nonterminals{Aq|q∈Q},(2).starTngnonterminalAs,(3).producTonrules{Ap →cAq |δ(p,c)=q}∪{Ap →ε|p∈F}(a) Using inducTon on |w|, prove that δ∗(s,w) = q in the DFA ifand only if As⇒=∗wAq in the CFG. ±hen prove that L(M) =L(G), hence the conversion from DFA to CFG is correct.(b) Draw the DFA that idenT es mulTples of 3 in binary. Givenames to the states, and then show the CFG that you get whenconverTng this DFA using the approach above.Note: You may wish to recall the recursive de niTon of δ∗:∗defWhen b is a single characterifα⇒= βXγ,andX →δ isaproducTonrule,thenα⇒= βδγ2.Convert the following CFG to Chomsky norma lform(showsteps for be²er parTa lcredit):S →aSddd |±± → b±dd | RR → cR | ε3.Show that the following languages are context-free:(a) {akbmcn | k,m,n not all equal}(b) {xcy | x,y∈{a,b}∗and rev(x) is a substring of y}In other words: strings that contain a single c character, wherethe part of the string occurring before c appears reversedsomewhere a³er the c. Example: aaabbcabababbbaaabba is inthe language.

Attachments:

Answers

(11)
Status NEW Posted 09 May 2017 02:05 AM My Price 9.00

-----------

Not Rated(0)