Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. The following Questions are based on DFA Part 4 Slides (a) Find the minimal strings for the following string expressions ab*|c* ab*|c + (a|b)*

1. The following Questions are based on DFA Part 4 Slides

(a) Find the minimal strings for the following string expressions

ab*|c*

ab*|c+

(a|b)*

(a(c|d)*e3b)*

(a(c|d)*e3b)

(b) Find the subgroup of strings for the following string expressions

ab*|c*

ab*|c+

(a|b)*

(a(c|d)*e3b)*

(a(c|d)*e3b)

(c) Find the subgroup of strings that are under * for the following string expressions

ab*|c*

ab*|c+

(a|b)*

(a(c|d)*e3b)*

(a(c|d)*e3b)

(d) Based on the formula we learned, for the following string expression, determine

how many states are required to accept the minimal string by a DFA ?

(a(cb|d)*e3b)

how many additional states are required to accept the subgroup of strings under * ?

Draw the DFA that accepts the given string .

2.

Explain, in your own language, that 1n0n, for n>1 is not accepted by a DFA using the following two methods:

Showing that the expression contradicts with pumping lemma requirements

Showing that the expression will require a DFA with an infinite number of states to be accepted

3.

Compute AUB, A* and AB for the following A and B

A={ab*|c} and B={d}

Draw three DFAs to accept AUB, A* and AB for the following A and B.

A={ab*|c} and B={d}

What languages the following two grammars individually generate ?

Grammar 1

A a

A aB

B c

B d

Grammar 2

A aC

A aB

B cB

B

C

Build grammars for each of the following regular languages :

Language 1: a*bc

Language 2: a+bc*

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions