Computers and Technology

Here are eight simple grammars, each of which generates an infinite language of strings. these strings tend to look like alternating a's and b's, although there are some exceptions, and not all grammars generate all such strings. s → abs | abs → ss | abs → ab; b → bs | as → ab; b → bs | bs → ab; b → bs | abs → ab | b; b → bss → ab | a; b → bss → ab | ab; b → bsthe initial symbol is s in all cases. determine the language of each of these grammars. then, find, in the list below, the pair of grammars that define the same language. a) g1: s → ab, b → bs, b → bg2: s → ab, b → bs, s → bb) g1: s → ab, b → bs, b → ag2: s → ab, b → bs, b → bc) g1: s → ab, b → bs, b → bg2: s → ab, b → bs, s → abd) g1: s → ab, b → bs, b → abg2: s → ss, s → ab

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:30, jhonpiper
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
image
Computers and Technology, 24.06.2019 01:00, kkruvc
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
image
Computers and Technology, 24.06.2019 07:00, erick7123
Why do we mark tlc plates with pencil and not with pen
Answers: 2
Do you know the correct answer?
Here are eight simple grammars, each of which generates an infinite language of strings. these strin...

Questions in other subjects:

Konu
Mathematics, 20.11.2019 05:31
Konu
Mathematics, 20.11.2019 05:31