Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Design Regular Expressions for the following languages. i. Strings that contains at least two 1's and exactly three O's. E={0, 1} Strings representing

 

1. Design Regular Expressions for the following languages. i. Strings that contains at least two 1's and exactly three O's. E={0, 1} Strings representing a word with length divisible by 4 and contains at least 1 vowel. E={a, b, c,..., z} ii. iii. Strings that contain '01' as substrings at any place except at the beginning or at the end. It accepts 1010,110110, etc. but does not accept 01, 0110, 1101, 00, etc. E={0, 1} iv. Length of the strings cannot be less than 3 characters and the number of 1's is divisible by 2. It accepts, 101, 1001, 1111, etc. however rejects e, 0, 1, 11, 100, 111, etc. E={0, 1} v. Strings where no character appears consecutively more than 3 times? E={a,b,c} Design DFA for the following languages. i. Strings that ends with 0 or ends with only one 0 after reading 1. E={0, 1} ii. The strings start with 'b' but do not end with 'baa'. E={a, b} iii. Each string contains 'abb' and has a length greater than 4. E={a, b} iv. Design a DFA for the language L where L={ 0'1 both i and j are odd }. For example, 01, 000111, 011111 are valid strings belonging to L. E-{0, 1} Convert the following Regular Expressions to their equivalent NFA/E-NFAS using Thompson's Construction. i. (0 + 10 )* 11 (0+ 0*1)* + (0+ 10)* (1+e) E=(0, 1} ii. (a*b+c)*(b+ e) E={a, b} iii. (a(b|c)*)*| (alb(a|c)*)* E={a, b} 2. 3.

Step by Step Solution

3.50 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

1 1 Regular Expression re 101010111 2 Regular Expression regular ... 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

Fundamentals of Analytical Chemistry

Authors: Douglas A. Skoog, Donald M. West, F. James Holler, Stanley R. Crouch

9th edition

495558281, 978-0495558286

More Books

Students also viewed these Computer Engineering questions

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago