Let F be the language of all strings over 0,1that do not contain a pair of 1s that are separated by an odd number of symbols. Give the state diagram of a DFA with five states that recognizes F . (You may find it helpful first to find a 4-state NFA for the complement of F).

Short Answer

Expert verified

The state diagram of a DFA with five states that recognize F as follows:

Step by step solution

01

Explain the given problem.

Consider the language Fthat contains the strings over 0,1 , that does not contain a pair of 1s that are separated by an odd number of symbols.

02

Explain the DFA

The DFA is the Deterministic Finite Automata, which has deterministic states that have knowledge of the future of the transition.

03

Give the state diagram of a DFA with five states that recognize F

Construct the NFA for the given statement, then convert it into a DFA. Construct the NFA, F'that it accepts the strings that do not contain a pair of 1s that are separated by an odd number of symbols.

The NFA, F'is as follows:

Convert the NFA to DFA as follows:

  1. Create an empty set.
  2. Make the initial state of NFA the same as the initial state of DFA and add the set of states of DFA.
  3. Find the possible set of states for every new state for each input symbol by the transition function of NFA and add new states to the set of states.
  4. Start the above transition from the initial state.
  5. Stop the procedure if no new states are formed.
  6. Declare the final states of DFA, which is the set of final states of NFA.

The state diagram of the DFA is as follows,

Change the final states to non-final states and vice versa to complement the above DFA as follows:

Combine the dead states in the above DFA as a single state as follows,

Simplify the above DFA by renaming the states as follows:

Therefore, the state diagram of a DFA with five states that recognizes has been obtained.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Let
fx=3x+1foroddxx/2forevenx

for any natural number x . If you start with an integer x and iterate f , you obtain a sequence, x,fx,ffx,......Stop if you ever hit 1. For example, if x=17 , you get the sequence 17,52,26,13,40,20,10,5,16,8,4,2,1 .Extensive computer tests have shown that every starting point between 1 and a large positive integer gives a sequence that ends in 1 . But the question of whether all positive starting points end up at 1 is unsolved; it is called the 3x+1 problem. Suppose that ATMwere decidable by a TM H. Use H to describe a TM that is guaranteed to state the answer to the 3x+1 problem.

Show that the function K(x) is not a computable function.

A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form

δ : Q × Γ−→Q × Γ × {R, RESET}.

If δ(q, a) = (r, b, RESET), when the machine is in state q reading an a, the machine’s head jumps to the left-hand end of the tape after it writes b on the tape and enters state r. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.

Let be the language of properly nested parentheses. For example, (()) and ()are in, but) (is not. Show that A is in L.

Recall, in our discussion of the Church–Turing thesis, that we introduced the language is a polynomial in several variables having an integral root}. We stated, but didn’t prove, thatis undecidable. In this problem, you are to prove a different property of—namely, thatDis -hard. A problem is -hard if all problems in are polynomial time reducible to it, even though it may not be inNPitself. So you must show that all problems in NPare polynomial time reducible to D .

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free