267 views
1 votes
1 votes
Which of the following is true:?

1) For a given grammar, there is one and only one language.

2) For a given language, there is one and only one grammar.

Please explain with example.

1 Answer

2 votes
2 votes
1) For a given grammar, there is one and only one language.

This is correct.

A grammar is set of rules, all the strings which are generated by the grammar constitute the language.

But a language is a collection of strings and more than one rules can be framed which can generate the same set of strings so, Option B is false.

Related questions

3 votes
3 votes
2 answers
1
0 votes
0 votes
1 answer
2
gateexplore asked Jun 11, 2023
443 views
Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by an odd number of 1's and ending with any number of 2's. Please give the answ...
0 votes
0 votes
0 answers
3
vishnu777 asked Nov 24, 2022
215 views
Can anyone explain what is the meaning of saying set of some languages is another language.Ex: L1,L2,L3.....Ln are some languages then i define L={L1,L2,L3.....Ln} which ...
1 votes
1 votes
1 answer
4