Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

28. Let ? {a,b), and let L be the language over ? exactly consisting of all strings that do not contain the substring aaa. Consider

image text in transcribed

28. Let ? {a,b), and let L be the language over ? exactly consisting of all strings that do not contain the substring aaa. Consider the following regular expressions: (ii) (b + ab + aab)"(A + a + aa) (iii) (A + + aa)(b + ba-baa)" Which of the following is correct? (a) Only regular expression (i) generates L (b) Only regular expressionii generates L (c) Only regular expression (ii) generates L (d) Only regular expressions (i) and) generate L (e) Only regular expressions (i) andi) generate L (f) Only regular expressions (ii) and ) generate L (g) All 3 regular expressions generate L (h) None of the 3 regular expressions generates L 2.9. Let ?-{a,b), and let L-(antra": n > 1, w E ?*). Consider the following statements: (i) L has regular expression ?*(a + b)"a" (ii) L is a non-regular language. (ii) L has context-free grammar where S, X are non terminals (iv) L has context-free grammar where S,X are nonterminals. Which of the following is true? (a) Only statement (i) is correct. (b) Only statement (ii is correct (c) Only statement is correct (d) Only statement (iv) is correct. (e) Only statements (i) and iii are correct (f) Only statements (i) and (iv) are correct. (g) Only statementsi) and iii) are correct. (h) Only statements and (iv) are correct (i) Only statements (ii), and (iv) are correct (i) All the 4 statements are correct. (k) None of the 4 statements is correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

2. The model is credible to the trainees.

Answered: 1 week ago