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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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