4) Consider the language L = L₁ L2, where L₁ = {ww: w = {a, b}* and L2 = {a”b*a": n≥ 0}. a) List the first four strings in the lexicographic enumeration of L? b) Write a context-free grammar to generate L. c) Show a natural PDA for L. (In other words, don't just build it from the grammar using one of the two-state constructions presented in this chapter.) d) Prove that L is not regular. 1) Build a PDA to accept each of the following languages L: a) BalDelim = {w where w is a string of delimiters: (, ), [, ], {, }, that are properly balanced}. b) {ab2i3j + 1}. c) {w = {a, b}* : #a(w) = 2•#b(w)}. d) {a"b" m≤n≤2m}. e) {w = {a, b}* w = w²}. f) {abci,j, k ≥ 0 and (i #j orj #k)}. g) {we {a, b}* : every prefix of w has at least as many a's as b's}. h) {aba" n, m ≥ 0 and m is even}.

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
icon
Related questions
Question
4) Consider the language L = L₁ L2, where L₁ = {ww: w = {a, b}* and L2 = {a”b*a": n≥ 0}.
a)
List the first four strings in the lexicographic enumeration of L?
b) Write a context-free grammar to generate L.
c) Show a natural PDA for L. (In other words, don't just build it from the grammar using one of the two-state
constructions presented in this chapter.)
d) Prove that L is not regular.
Transcribed Image Text:4) Consider the language L = L₁ L2, where L₁ = {ww: w = {a, b}* and L2 = {a”b*a": n≥ 0}. a) List the first four strings in the lexicographic enumeration of L? b) Write a context-free grammar to generate L. c) Show a natural PDA for L. (In other words, don't just build it from the grammar using one of the two-state constructions presented in this chapter.) d) Prove that L is not regular.
1) Build a PDA to accept each of the following languages L:
a)
BalDelim = {w where w is a string of delimiters: (, ), [, ], {, }, that are properly balanced}.
b) {ab2i3j + 1}.
c) {w = {a, b}* : #a(w) = 2•#b(w)}.
d) {a"b" m≤n≤2m}.
e)
{w = {a, b}* w = w²}.
f) {abci,j, k ≥ 0 and (i #j orj #k)}.
g) {we {a, b}* : every prefix of w has at least as many a's as b's}.
h) {aba" n, m ≥ 0 and m is even}.
Transcribed Image Text:1) Build a PDA to accept each of the following languages L: a) BalDelim = {w where w is a string of delimiters: (, ), [, ], {, }, that are properly balanced}. b) {ab2i3j + 1}. c) {w = {a, b}* : #a(w) = 2•#b(w)}. d) {a"b" m≤n≤2m}. e) {w = {a, b}* w = w²}. f) {abci,j, k ≥ 0 and (i #j orj #k)}. g) {we {a, b}* : every prefix of w has at least as many a's as b's}. h) {aba" n, m ≥ 0 and m is even}.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education