Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer all questions. Unless otherwise stated, all the DFAs and NFAs in this homework use = {0, 1} as the alphabet. 1. (30 point) For

Answer all questions. Unless otherwise stated, all the DFAs and NFAs in this homework use = {0, 1} as the alphabet.

1.

(30 point) For each i=1,2 and 3, compose a regular expression Ri, such that L(Ri) = Ci, where

(a) C1 = {w | w has an odd number of 0s, or, contains exactly three 1s}.

(b) C2 ={w|thelengthofw isatmost5}.

(c) C3 = {w | all strings except the strings }11 and 111.

Give reason(s) to support your answer to each case. The reason(s) given for each case should be concise. Do not use more than three complete sentences for each case.

(20 point) By using the standard standard proceduce as given in Lemma 1.55 (Sipser), construct the NFA Na and Nb such that

L(Na) = L(Ra) and L(Nb) = L(Rb).

where Ra = (0 00) 1+ and Rb = +++.

Show intermediate steps.

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

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions