(a) The language {a^ : n ≥ 0} {ba: n ≥ 1} with at most 4 states. (b) The language {w w either has no consecutive a's or no consecutive b's} with at most 5 states. (c) The language {w w contains an even number of a's or exactly two b's} with at most 6 states. (d) The language {ab, aab, aba}* with at most 4 states.

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter20: Creating A Presentation
Section: Chapter Questions
Problem 5QY
icon
Related questions
Question

1. For each of the following languages over the alphabet Σ = {a, b} give
an NFA (as a transition diagram) with the specified number of states. Hint: try
simplifying a DFA and/or use λ transitions.

 

(a) The language {a^ : n ≥ 0} {ba: n ≥ 1} with at most 4 states.
(b) The language {w w either has no consecutive a's or no consecutive b's} with at
most 5 states.
(c) The language {w w contains an even number of a's or exactly two b's} with at
most 6 states.
(d) The language {ab, aab, aba}* with at most 4 states.
Transcribed Image Text:(a) The language {a^ : n ≥ 0} {ba: n ≥ 1} with at most 4 states. (b) The language {w w either has no consecutive a's or no consecutive b's} with at most 5 states. (c) The language {w w contains an even number of a's or exactly two b's} with at most 6 states. (d) The language {ab, aab, aba}* with at most 4 states.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning