Question

how to solve the Under Problem? can i see the answer? -------------------------------------------------------------- in...

how to solve the Under Problem?

can i see the answer?

--------------------------------------------------------------

introduction To Automata Theory Languages , and Computation
Prentice Hall; 2nd edition

Exercise 4.2.14: In Theorem 4.8, we described the "product construction" that took two DFA's and constructed one DFA whose language is the intersection of the languages of the first two.

c)Show how to modify the product construction so the resulting DFA accepts the difference of the languages of the two given DFA's.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

Let M and N be the languages of DFA's AM and AN, where

A_M=(Q_M,\Sigma ,\delta_M,q_M,F_M)

A_N=(Q_N,\Sigma ,\delta_N,q_N,F_N)

The product construction of above two DFA's is

A=(Q_M\times Q_N,\Sigma ,\delta,(q_M,q_N),F)

where δ( (p, g), a)-@w (p, a), bylg, a) )

As we want to accept the difference of the languages of the two given DFA's, we will choose as the accepting states of A all those pairs (p,q) where p is is an accepting state of AM and q is a non-accepting state of AN.

That means,

{\color{Blue} F=F_M \times \left ( Q_N-F_N \right )}

Then the resulting DFA accepts the difference of the languages M - N.

Add a comment
Know the answer?
Add Answer to:
how to solve the Under Problem? can i see the answer? -------------------------------------------------------------- in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please provide original Answer, I can not turn in the same as my classmate. thanks In...

    Please provide original Answer, I can not turn in the same as my classmate. thanks In this homework, you will implement a single linked list to store a list of computer science textbooks. Every book has a title, author, and an ISBN number. You will create 2 classes: Textbook and Library. Textbook class should have all above attributes and also a “next” pointer. Textbook Type Attribute String title String author String ISBN Textbook* next Textbook Type Attribute String title String...

  • please answer as soon as possible. i only have 37 minutes left. i need help determining...

    please answer as soon as possible. i only have 37 minutes left. i need help determining whether or not the examples are word for word plagarism, paraphrasing plagarism, or not plagarism at all 14% Sun 12 29:06 AM Christoph Window Help Edi Safari Fle View History Bookmarks indiane edua In The Case Below The Original Source to How to Recognine PagiaemUndergraduate Cerication Tests: Se. Plagasm Ceficate Item 1 View In the case below, the original source material is given along...

  • Hi there! I need to compare two essay into 1 essay, and make it interesting and...

    Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT