1,424 views
0 0 votes
L={w∣na(w)=nb(w)}L={w∣na(w)=nb(w)} is deterministic context free language, but not linear.

HOW THIS Language is not linear

S-->aA/bB

A-->Sb/b

B-->Sa/a

i think this grammar is correct for this language? how this grammar is not linear?

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
155
155 views
kakorot asked May 30
155 views
1 1 vote
1 answers 1 answer
263
263 views
Shahd_Algahim asked Dec 6, 2025
263 views
For Σ = {a, b} construct dfa’s that accept the sets consisting of “all strings with an even number of a’s” (give transition diagram of the finite machine)
0 0 votes
0 0 answers
376
376 views
Amarnath Jagatap asked Feb 26, 2025
376 views
A run in a string is a substring of length at least two, as long as possible and consisting entirely of the same symbol. For instance, the string abbbaab contains a run o...
3 3 votes
0 0 answers
392
392 views
Deepak Poonia asked Nov 20, 2024
392 views
Show that $L = \{a^nb^m,n< 2m \}$ is a deterministic context-free language.