Context-Free Languages as Least Fixed-Points Assignment Help

Assignment Help: >> Context-free grammars and languages >> Context-Free Languages as Least Fixed-Points

Context-Free Languages as  Least Fixed-Points:

Given a context-free grammar G = (V, Σ, P, S) with m nonterminals A1 ,... Am, grouping all the productions having same left-hand side, the grammar G can be written as

A1  α1,1  + ··· + α1,n1 ,

···  ··· 

Ai αi,1  + ··· + αi,ni ,

···  ··· 

Am αm,1 + ··· + αm,nn .

Given any set A, let Pfin (A) be the set of finite subsets of A.

Definition: Let G = (V, Σ, P, S) be a context-free grammar with m nonterminals A1.. ., Am. For any m-tuple Λ = (L1 ,..., Lm) of languages Li Σ*, we define the function

inductively as stated:

Φ[Λ]()= ,

Φ[Λ]({ })= { },

Φ[Λ]({a})= {a},       if a Σ,

Φ[Λ]({Ai })= Li,       if Ai N ,

Φ[Λ]({αX })= Φ[Λ]({α})Φ[Λ]({X }),         if α V+X V,

Φ[Λ](Q {α})= Φ[Λ](QΦ[Λ]({α}),        if Q Pfin (V ), Q = , α V*, α / Q.

Then, writing grammar G as follows

A1  → α1,1  + ··· α1,n1 ,

···  ··· 

Ai → αi,1  + ··· αi,ni ,

···  ··· 

Am → αm,1 + ··· αm,nn .

we may define the map

1823_Context-Free Languages as Least Fixed-Points.png

so that

1600_Context-Free Languages as Least Fixed-Points1.png

One should verify that map Φ[Λ] is well defined, but this is simple. The following lemma is shown easily:

Lemma: Given a context-free grammar G = (V, Σ, P, S) with m nonterminals A1 , .. .Am, map

941_Context-Free Languages as Least Fixed-Points4.png

is ω-continuous.

Now, 2287_Context-Free Languages as Least Fixed-Points3.png is an ω-chain complete poset, and map Φis ω-continous. Thus, by lemma, the map Φhas a least-fixed point.  It turns out that the components of this least fixed-point are precisely the languages generated by the grammars (V, Σ, P, Ai ). Before giving this fact, there is an example explaning  it.

Example. Consider the grammar G = ({A, B, a, b}, {a, b}, P, A) can be defined by the rules

A BB  + ab,

B aBb + ab.

The least fixed-point of ΦG is least upper bound of the chain

1852_Context-Free Languages as Least Fixed-Points2.png

337_Context-Free Languages as Least Fixed-Points5.png

By induction, we can prove that the 2 components of the least fixed-point are the languages

1704_Context-Free Languages as Least Fixed-Points6.png

Letting GA  = ({A, B, a, b}, {a, b}, P, A) and GB = ({A, B, a, b}, {a, b}, P, B), it is indeed true that L= L(GA) and LB  = L(GB).

Email based Automata assignment help - homework help

The study of automata is an important area of theory of computation. Students feel trouble in solving automata questions. We at www.expertsmind.com offers Automata assignment help - Automata homework help and online tutoring with best qualified and experienced computer science tutor's help. We cover all topics including Context-Free Languages as Least Fixed-Points in assignment help - homework help service. Get solved problems in automata theory with step by step answers anytime from expert tutors at expertsmind.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd