Let \(\Sigma=\{a,b,c,d\}\) and \(L=\{a^i b^j c^k d^{\ell}\mid i,j,k,\ell\geq0\}\).
Which of the following constraints ensure(s) that the language \(L\) is context-free?
The language is \(L = \{a^i b^j c^k d^l : i,j,k,l \ge 0\}\), where every string of \(L\) has the fixed block order a's, then b's, then c's, then d's, over \(\Sigma = \{a,b,c,d\}\). We must check, for each extra constraint on \(i,j,k,l\), whether the resulting language can still be recognized by a pushdown automaton (single stack).
Step 1: Option A - \(i+k=j+l\).
Because the letters always occur in the fixed order \(a^i b^j c^k d^l\), we can build a PDA with one stack symbol \(X\): push \(X\) while reading each \(a\) and each \(c\), and pop \(X\) while reading each \(b\) and each \(d\), switching nondeterministically to a second symbol \(Y\) for excess b's if \(j>i\), and popping \(Y\) first when c's arrive. The string is accepted exactly when the stack is empty after the last \(d\), which happens iff \(i+k-j-l=0\), i.e. \(i+k=j+l\). A single stack suffices, so this constraint keeps \(L\) context-free.
Step 2: Option B - \(i=k\) and \(j=l\).
This forces the language \(\{a^i b^j c^i d^j\}\), where the first block must match the third block AND, independently, the second block must match the fourth block, while the equal blocks are never adjacent to each other. A single stack can preserve at most one such correlation cleanly across the string; keeping the count of a's alive to compare with c's while also keeping the count of b's alive to compare with d's forces two independent tallies at once, which a single LIFO stack cannot do. The pumping lemma for context-free languages confirms this: pumping any sufficiently long string breaks either \(i=k\) or \(j=l\). Hence this constraint does NOT keep \(L\) context-free.
Step 3: Option C - \(i=l\) and \(j=k\).
With \(j=k\), the middle two blocks become \(b^jc^j\), and with \(i=l\) the outer blocks become \(a^i \dots d^i\). So the string has the nested form \(a^i(b^jc^j)d^i\). This is generated by the context-free grammar \[S \rightarrow aSd \mid A, \qquad A \rightarrow bAc \mid \varepsilon\] which is a standard nested-matching (Dyck-like) grammar. Since a CFG generates it, this constraint keeps \(L\) context-free.
Step 4: Option D - \(i+j=k+l\).
Here the first two (adjacent) blocks \(a^ib^j\) together must have the same length as the last two (adjacent) blocks \(c^kd^l\). A single stack can push one symbol for every \(a\) or \(b\) read, then pop one symbol for every \(c\) or \(d\) read; the string is accepted iff the stack empties exactly at the end, which holds iff \(i+j=k+l\). Equivalently, the grammar \[S \rightarrow (a\mid b)\,S\,(c\mid d) \mid \varepsilon\] generates precisely this sub-language of \(L\), so it is context-free.
Conclusion: Options A, C and D each admit a single-stack (or CFG) construction, so they preserve context-freeness, while option B requires two independent, non-adjacent counter matches that cannot be realized with one stack.
\[\boxed{\text{Correct options: A, C, D}}\]A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?

Which of the following grammars is/are ambiguous?
Let πΏ1 and πΏ2 be two languages over a finite alphabet, such that πΏ1 β©πΏ2 and πΏ2 are
regular languages.
Which of the following statements is/are always true?
Consider the following context-free grammar πΊ.
πβππππ΄π΅π΄πππ
π΄βπππ΅π΅π΄π | ππ΅ππππ
π΅βππ΅π | ππ
In the above grammar, π is the start symbol, π and π are terminal symbols, and π΄ and
π΅ are non-terminal symbols.
Let πΏ(πΊ) be the language generated by the grammar πΊ. For a string π βπΏ(πΊ), let
π1(π ) be the number of πβs in π and π2(π ) be the number of πβs in π .
Which of the following statements is/are true?
Consider the following grammar where π is the start symbol, and π and π are
terminal symbols.
π βππππ β£ ππ β£ Ο΅
Which of the following statements is/are true?