subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Here are eight simple grammars, each of which generates an infinite language of strings. these strin...
Questions
question
Physics, 19.08.2021 07:30
question
Mathematics, 19.08.2021 07:30
question
Physics, 19.08.2021 07:30
question
Mathematics, 19.08.2021 07:30
question
Mathematics, 19.08.2021 07:40
question
Mathematics, 19.08.2021 07:40
Questions on the website: 13722367