Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 : ( 2 5 points ) Let A = { a 1 , a 2 , dots, a 1 4 0 3 }

Problem 1: (25 points) Let A={a1,a2,dots,a1403}sub{0,1}** be a set of strings with aiin{0,1}** for all 1i1403.
Can one describe A-{} by a regular expression? Why?
Can one describe A2=A*A by a regular expression? Why? {0,1}1403+{0,1}1403
Can one describe A** by a regular expression? Why?
Problem 2: (25 points) Let Lsub{0,1}** be the formal language of all strings that contain at least two 1's.
Provide a regular expression for L.
Provide a minimal DFA that describes LR
strings that contain at least
(0,1)(0+1)**1(0+1)
LR
Problem 3: (25 points) Which one of the following formal languages are regular? Why?
{u$u|uin{0,1}**}sube{0,1,$}**.
The set of all strings in {0,1}** having different number of zeros and ones.
Problem 4: (25 points) Consider the following -NFA describing a language L and construct a minimal DFA describing LR(explicitly describe your method and write down the details of your computations).
S1S2
Figure 1: The -NFA of Problem 4.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions