Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the languages L 1 = L ( a + b a ( ab + ba ) a ) , L 2 = L (

Consider the languages
L1= L(a + b
a(ab + ba)
a
),
L2= L((ba)
a(aa)
a),
L3= L(a
(aa + baa)a + aaa).
a) Give a word that is in all three languages, and a word that is in none of them. (1pt)
b) Show that each of the languages L1, L2 and L3 is different. (1.5pt)
c) Consider the language L, given by
L4={w in A
| the word bab occurs at least twice in w}
Is L4 equal to L5= L(a
(bab)a
b
(ab + bab))? Justify your answer2 Regular Expressions (I)
Consider the languages
L1=L(a+b**a(ab+ba)**a**),
L2=L((ba)**a(aa)**a),
L3=L(a**(aa+baa)a+aaa).
a) Give a word that is in all three languages, and a word that is in none of them.
(1pt)
b) Show that each of the languages L1,L2 and L3 is different.
c) Consider the language L, given by
L4={winA**| the word bab occurs at least twice inw}
Is L4 equal to L5=L(a**(bab)a**b**(ab+bab))? Justify your answer
image text in transcribed

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

Optimization And Data Science Trends And Applications 5th Airoyoung Workshop And Airo Phd School 2021 Joint Event

Authors: Adriano Masone ,Veronica Dal Sasso ,Valentina Morandi

1st Edition

3030862887, 978-3030862886

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago