Aspire Faculty ID #18843 · Topic: UGC NET Computer Science Nov 2021 (Paper II) · Just now
UGC NET Computer Science Nov 2021 (Paper II)

Let

$L_1=\{0^n1^n0^m\mid n\ge 1,\ m\ge 1\}$

$L_2=\{0^n1^m0^m\mid n\ge 1,\ m\ge 1\}$

$L_3=\{0^n1^n0^n\mid n\ge 1\}$

Which of the following are correct statements?

A. $L_3=L_1\cap L_2$

B. $L_1$ and $L_2$ are context free languages but $L_3$ is not a context free language

C. $L_1$ and $L_2$ are not context free languages but $L_3$ is a context free language

D. $L_1$ is a subset of $L_3$

Choose the correct answer from the options given below:

Solution

$L_1$ has equal number of first $0$'s and $1$'s, so it is CFL.

$L_2$ has equal number of $1$'s and last $0$'s, so it is also CFL.

Now,

$L_1=\{0^n1^n0^m\}$

$L_2=\{0^n1^m0^m\}$

In $L_1\cap L_2$, number of first $0$'s $=$ number of $1$'s and number of $1$'s $=$ number of last $0$'s.

So,

$L_1\cap L_2=\{0^n1^n0^n\}=L_3$

Thus, statement A is true.

$L_3=\{0^n1^n0^n\mid n\ge 1\}$ is not context free language.

So, statement B is true.

Statement C is false because $L_1$ and $L_2$ are CFL.

Statement D is false because $L_1$ contains strings like $0011000$, which are not in $L_3$.

Previous 10 Questions — UGC NET Computer Science Nov 2021 (Paper II)

Nearest first
1
Any string of terminals that can be generated by the following context-free grammar, where $S$ is start nonterminal sym…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
2
Which of the following languages are not regular?A. $L=\{(01)^n0^k\mid n>k,\ k\ge 0\}$B. $L=\{c^nb^ka^{n+k}\mid n\ge…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
3
Consider the following linear optimization problem:Maximize $Z=6x+5y$Subject to $2x-3y\le 5$$x+3y\le 11$$4x+y\le 15$and…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
4
Let $(X,*)$ be a semigroup. Furthermore, for every $a$ and $b$ in $X$, if $a\ne b$, then $a*b\ne b*a$.Based on the defi…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
5
Match List I with List IIList IList IIA. $x+x=x$I. Identity LawB. $x+0=x$II. Absorption LawC. $x+1=1$III. Idempotent La…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
6
Which of the following Graphs is(are) planar?
Topic: UGC NET Computer Science Nov 2021 (Paper II)
7
For which value of $n$ is Wheel graph $W_n$ regular?
Topic: UGC NET Computer Science Nov 2021 (Paper II)
8
Let us assume a person climbing the stairs can take one stair or two stairs at a time. How many ways can this person cl…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
9
A company stores products in a warehouse. Storage bins in this warehouse are specified by their aisle, location in the …
Topic: UGC NET Computer Science Nov 2021 (Paper II)
10
How many ways are there to assign $5$ different jobs to $4$ different employees if every employee is assigned at least …
Topic: UGC NET Computer Science Nov 2021 (Paper II)

Next 10 Questions — UGC NET Computer Science Nov 2021 (Paper II)

Ascending by ID
1
Given below are two statementsStatement I: The family of context free languages is closed under homomorphism.Statement …
Topic: UGC NET Computer Science Nov 2021 (Paper II)
2
What is the minimum number of states required to the finite automaton equivalent to the transition diagram given below?
Topic: UGC NET Computer Science Nov 2021 (Paper II)
3
Find the regular expression for the language accepted by the automata given below.
Topic: UGC NET Computer Science Nov 2021 (Paper II)
4
 What language is accepted by the pushdown automaton$M=({q_0,q_1,q_2},\{a,b\},\{a,b,z\},\delta,q_0,z,\{q_2\})$with…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
5
Match List I with List IIList IList IIA. $S\to XY,\ X\to 0,\ Y\to 1$I. Greibach Normal FormB. $S\to aS\mid bSS\mid c$II…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
6
Which of the following concepts can be used to identify loops?A. Depth first orderingB. DominatorsC. Reducible graphsCh…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
7
Given below are two statementsStatement I: LL(1) and LR are examples of Bottom-up parsers.Statement II: Recursive desce…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
8
The postfix form of the expression $(A+B)*(C*D-E)*F/G$ is ______
Topic: UGC NET Computer Science Nov 2021 (Paper II)
9
A double-ended queue (deque) supports adding and removing items from both ends of the queue. The operations supported b…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
10
Two balanced binary trees are given with $m$ and $n$ elements, respectively. They can be merged into a balanced binary …
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Ask Your Question or Put Your Review.

loading...