retagged by
748 views
3 votes
3 votes

Given a set $A\subseteq \left\{0,1 \right \}^*,$ let

$A' = \left\{ xy\; |\;x1y\in A\right\}.$ That is, $A'$ consistes of all the strings obtained from a string in $A$ by deleting in $A$ by

deleting exactly one $1$. if $A$ is regular, then $A'$ is 

(A) Regular

(B) Context free but not regular

(C) Recursive but not context free

(D) None of the above.

retagged by

2 Answers

Best answer
4 votes
4 votes

$A$ is regular 

Design a $DFA$ $M1$ for language $A$

Design a $DFA$ $M2$ for $(0+1)^*1(0+1)^*$

Do the Intersection, using $M1\times M2$  

Now,We will have $DFA$  $M$ that accepts all strings $x1y\in A$

There will be at least one transition in $M$ such as $q \times 1 \rightarrow q'$,where $q \neq q'$ ,while moving from start state to final state, and not in closure (not is closed loop, $x1y$ guaranteed for such transition), replace $1$ by $\epsilon$ in that one transition as $q \times \epsilon \rightarrow q'$  
so , after converting $\epsilon -NFA$ to $DFA$, that will be  $DFA$ of $A'$

$A'$ will be Regular

selected by
0 votes
0 votes
A is regular

A' is deletes only one 1 (deleting finite no. of string)

A'=A - 1

   =regular - finite amount of string

  =regular -regular

  =regular ⋂ (regular)'

  =regular ⋂ regular

  =regular

Ans will be (A)

Related questions

4 votes
4 votes
3 answers
1
2 votes
2 votes
2 answers
2
Na462 asked Sep 13, 2018
709 views
Is the given Grammer represent a regular language ?S->AaBA->aC | epsilonB->aB | bB | epsilonC->aCb | epsilon
1 votes
1 votes
1 answer
3
Na462 asked Sep 11, 2018
1,614 views
Is Language L = {0(n+m) 1(k+l) | m = l, and m,n,k,l ≥ 1 } a regular language ? explain
0 votes
0 votes
1 answer
4
srestha asked May 24, 2018
800 views
Is it regular?$\left \{ \left ( 0^{n} \right )^{m}|n<m,n,m\geq 1 \right \}$