(2) The following questions are related to regular expression and regular language: (i) Let E= {a, b} and r,r2, r be regular expressions. Find all the regular ones from the following expressions: a, 1, a. p, a + b, r³, r* ·$, (($)) + rị + r2, ri + r2 + r1, r*), (r1, ra), {n + r2}, (n · r2) (ii) Let E= {a, b}. Given regular expressions r = a*b*, r' = ba(ab)* + ab*ba* and r" = (a + b)aa(a + b)*, find L(*), L(r'), and L(r"), the languages defined by r, r', r", respectively. (i) Let Σ= (α b (a) Given the language L = {b"a": m,n 2 0}, find the regular expression r such that L(r) = L. (b) Given the language L = {(ba)", a"™b", aa: m,n 2 0}, find the regular expression r such that L(r) = L. (c) Given the language L = {ba b"a, (ab)*, aa: n,m 2 0 and h 2 1}, find the regular expression r such that L(r) = L.
(2) The following questions are related to regular expression and regular language: (i) Let E= {a, b} and r,r2, r be regular expressions. Find all the regular ones from the following expressions: a, 1, a. p, a + b, r³, r* ·$, (($)) + rị + r2, ri + r2 + r1, r*), (r1, ra), {n + r2}, (n · r2) (ii) Let E= {a, b}. Given regular expressions r = a*b*, r' = ba(ab)* + ab*ba* and r" = (a + b)aa(a + b)*, find L(*), L(r'), and L(r"), the languages defined by r, r', r", respectively. (i) Let Σ= (α b (a) Given the language L = {b"a": m,n 2 0}, find the regular expression r such that L(r) = L. (b) Given the language L = {(ba)", a"™b", aa: m,n 2 0}, find the regular expression r such that L(r) = L. (c) Given the language L = {ba b"a, (ab)*, aa: n,m 2 0 and h 2 1}, find the regular expression r such that L(r) = L.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education