248 views
2 votes
2 votes
{${a^{i}b^{j}c^{k}| (i\leq j)or(j\leq i),j=k}$} is CFL?

1 Answer

Best answer
3 votes
3 votes
yes its cfl, when you compare i and j only two cases happen either i is less than or equal to j or j is less than equal to i. So we don't need to check this condition. Remaining is j=k. So you can write above language as

  $L = \left \{a^{i}b^{n}c^{n} \right \}$, which is certainly a CFL.
selected by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
practicalmetal asked Mar 15, 2023
529 views
Is the following language context free:The set of all strings with number of a’s equal to number of b’s and the sum of a’s and b’s to be divisible by 3.