Create a dfa that accepts l1 by toggling

Assignment Help Computer Engineering
Reference no: EM132170666

Using JFLAP

Consider the two provided DFAs for the L1 = { all strings with an odd number of a's } and L2 = { all strings with an odd number of b's }. The alphabet SIGMA = { a, b }.

We know that the class of regular languages is CLOSED under intersection, so the language L1 intersect L2 is also regular, and must also have a DFA. Construct the DFA for L1 intersect L2 by complete the following steps.

Create a DFA that accepts ! L1 by toggling all the final and non-final states in M1. Save this DFA in a file called M3.

Create a DFA that accepts ! L2 by toggling all the final and non-final states in M2. Save this DFA in a file called M4.

Create an NDFA that accepts ( ! L1 union ! L2 ) by combining M3 and M4 (select the Menu labeled "Convert" and then select "Combine Automata"). Add a new state (which should be labelled as state q4) and make q4 be the start state. Draw a lambda-arrow from q4 to the start state of M3 and to the start state of M4. Save this NDFA in a file called M5.

Convert M5 into a DFA by using the JFLAP menu option. Click on "Complete" and then on "Done". Save this DFA in a file called M6.

How many states are in the DFA M6?

Now minimize the DFA M6. Click on the "Convert" menu and select "Minimize DFA". Click on the root of the tree that appears to the right, and then click on "Complete Subtree". Click on "Finish". Click on "Complete" and then "Done". Save this minimized DFA in a file called M7

How many states are in M7?

You can complete the construction of the DFA for L1 intersect L2 by toggling all the final and non-final states in M7.

Reference no: EM132170666

Questions Cloud

Is this a discrete probability distribution : a) Is this a discrete probability distribution? Indicate why or why not. b) Compute the mean amount charged for a cola.
Implement a method string insert that returns a string : Using java We wish to implement a method String insert(char c, String s) that returns a string with c inserted in the correct position in already sorted String.
Currency management and business strategy : Explain the implications of the global monetary system for currency management and business strategy
Critically evaluate the resources and capabilities : Strategic International Business Management (RKC) - Critically evaluate the resources and capabilities of Lidland the competitive implications
Create a dfa that accepts l1 by toggling : Create a DFA that accepts ! L1 by toggling all the final and non-final states in M1. Save this DFA in a file called M3.
Price elasticity of demand and price elasticity of supply : What are the factors that affect price elasticity of demand and price elasticity of supply? What are some applications of each?
Influence economic behavior : How can the government's power to coerce (influence economic behavior) be economically beneficial?
Write an example that counts the number of times : Write an example that counts the number of times a particular character, such as x, appears in a file.
Write a program that prompts the user for a radius : Write a program that prompts the user for a radius and height of a cylinder and uses a method to calculate the surface area.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which fragments for sure are missing for the message

Which fragments for sure are missing for the message with SI = 3 and SSN = 15?

  Distributed database

A distributed database is also termed as the Replicated Virtualized Rendered Concatenated database.

  List all the courses offered for the first time

List the eligible periods/classrooms for an unassigned course. This list should adhere to all the business rules given.

  Explain ocon and oref briefly

What is the function of the Output Wire Connector (OCON)?

  Write a program that accepts data continuously

Write a program that accepts data continuously

  Evaluate dbms products for data warehousing

design a high-level summary of the main requirements to evaluate DBMS products for data warehousing. Suppose you are selling the data warehouse idea to your users.

  What is the document root of a web server

In what common situation is the document returned by a Web server created after the request is received? What is the document root of a Web server?

  Create a project in which the input is the number of minutes

A local recording studio rents its facilities for $200 per hour. Management charges only for the number of minutes used. Create a project in which the input is the number of minutes it used the studio.

  How to using the prompt and alert functions

compute the average (mean) of the 5 marks as a rounded integer or a floating point number.

  Create a test driver for each to show that they work correct

Code each of these methods by accessing the internal variables of the SortedArrayCollection, not by calling the previously defined methods of the class.

  Discuss how to protect computer systems

There are a number of tools that have been designed to help protect computer systems, and the data stored on them

  Create a workflow diagram to illustrate how analytics and

large companies have been using the power of business analytics for quite a while now. your company desires to get in

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd