edited by
924 views

1 Answer

Best answer
15 votes
15 votes

$L=\{0^i1^j0^k\mid j=i+k,i,j,k\geq 0\} =\{\epsilon,0110,011100,001110,\ldots\}$

Now, $L=\{0^i1^{i+k}0^k\mid i,k\geq 0\}$

Here, CFG will be:

  • $S \rightarrow S_1S_2$
  • $S_1 \rightarrow 0S_11\mid\epsilon$
  • $S_2 \rightarrow 1S_20\mid\epsilon$
edited by

Related questions

1.7k
views
3 answers
12 votes
go_editor asked Jun 1, 2016
1,726 views
Write a regular expression for all strings of $0$’s and $1$’s in which the total number of $0$’s to the right of each $1$ is even. Justify your answer.
565
views
0 answers
1 votes
go_editor asked Jun 1, 2016
565 views
A connected, simple, undirected planar graph $G(V, E)$ is given where $V$ denotes the set of vertices and E denotes the set of edges. In $V$, ... .]
590
views
0 answers
1 votes
go_editor asked Jun 1, 2016
590 views
A school database maintains the following relations for its students, teachers and subjects:Student(st_name, st_address, class, section, roll_no, regn_no)Teacher(t_name, ... of a locality). Consider that any address offers a locality name.
1.2k
views
2 answers
2 votes
go_editor asked Jun 1, 2016
1,160 views
A block of bits with $n$ rows and $m$ columns uses horizontal and vertical parity bits for error detection. If exactly 4 bits are in error during transmission, derive an expression for the probability that the error will be detected.