3,056 views
1 votes
1 votes

Given ∑ = {a, b, c}, consider the language L 1= {an bn+m cm | n ≥ 0, m ≥ 1}

L2 = {an bmcn+m | n ≥ 0, m ≥ 1}
Which one of the following is incorrect?

  1.   The language L 1 shall have 6 states in its equivalent PDA
  2.   The language L1 is not DCFL.
  3.  The language L1 requires an NPDA for its acceptance.
  4. The language L2 is DCFL

2 Answers

1 votes
1 votes

For L1:

1. push a's until b appears. When b comes change the state and start popping out a's.

2.Repeat the same procedure until Z0 appears. When Z0 comes start pushing b's again.

3.When c comes, on each arrival of c pop b from stack.

4.At the end Z0 remains on the stack and if ϵ comes then string is accepted.

As the above mentioned procedure is Deterministic L1 is DCFL.

Correct Ans :2(as the statement is incorrect)

Related questions

1 votes
1 votes
2 answers
1
kvkumar asked Dec 3, 2016
684 views
L = {an bam|n,m ≥ 0 and n = m mod 5} is regular
2 votes
2 votes
1 answer
2
Anurag_s asked Aug 15, 2015
2,031 views
Answer True/False for the statements:S1: $L ≤_m \{0^n1^n \mid n ≥ 0\}$ then $L$ is decidable.S2: if $L$ is R.E. and $L’ ⊆ L$ then $L’$ is recursively enumerable...
0 votes
0 votes
0 answers
3