Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Show that the class of regular languages over an alphabet sigma is closed under the operation Even Only (L), defined as EvenOnly(L) = {w belongsto

image text in transcribed

Show that the class of regular languages over an alphabet sigma is closed under the operation Even Only (L), defined as EvenOnly(L) = {w belongsto L such that |w| is even} Your proof should have three stages: Setup Consider an arbitrary DFA M = (Q, sigma, delta, q_0, F), and call the language of this DFA L. Construction Build a new DFA whose language is EvenOnly(L). To do so, fill in the blanks M' = (Q', sigma, delta', q', F') where Q' = _________ This will be the set of states for your new machine. Delta'(______, x) = For each possible input to the transition function, specify the output. The blank input is a state in Q' and x belongs sigma. q' = _________ What is the initial state of M'? Make sure you choose an element of Q'. F' = _________ What is the set of accepting states of M'? Choose a subset of Q'. Justification To prove that the construction of correct, you will need to prove that L(M') = EvenOnly(L) for any L. Fix an arbitrary but unknown language L. Prove two things: (1) Assume that some string, call it w, is accepted by M'. Prove that w is in EvenOnly(L). (2) Assume that some string, call it y, is in EvenOnly(L). Prove that y is accepted by M

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions