Find a regular expression for the language

Assignment Help Theory of Computation
Reference no: EM132254976

Question 1. Construct a DFA equivalent to the following NFA.

 

a

b

λ

→q0

Φ

Φ

{q1, q4}

q1*

{q2}

Φ

Φ

q2

Φ

{q3}

Φ

q3

Φ

{q1}

Φ

q4

{q4}

Φ

{q5}

q5*

Φ

{q6}

Φ

q6

{q5}

Φ

Φ

Question 2. Consider a water bottle vending machine as a finite-state automaton. This machine is designed to accept coins of Rs. 2 and 5 only. It dispenses a single water bottle as soon as the amount entered is equal to or greater than Rs. 12. Coins may be inserted in any order and the machine returns appropriate amounts of change (Note: it returns a chocolate in place of one rupee change). However, there is no cancel button to get back the coins without completing the transaction. What is the exact number of states needed in this automaton? Show the automaton.

Question 3. The DFA M accepts a Language L over some alphabet Σ with distinct start state qs and a single final state qf.
i) What happens to L(M) if we introduce the following transition?
δ(qs , x) = qs for ∀ x ?Σ
You may express this formally using set theoretic notations or precisely in English.
ii) Would the automaton be still a DFA? Why?

Question 4. Construct FSM for the following scenarios.
Input: non empty binary sequence
I) output:
Should end in a final state if the input stream has a 1. So your automaton should mimic OR operation.
ii) output:
Should end in a final state only if the input stream has only a sequence of 1 and no 0. So your automaton should mimic AND operation.

Question 5. Write a regular expression for the following language:
L = {w ? {0, 1}* | w contains an equal number of occurrences of the substring 01 and 10}
(Eg. 010 ? L because 010 contains a single 01 and a single 10 as substrings; but 01101 doesn't belong to L because 01101 contains two 01 s and one 10.

Question 6. Consider the finite automaton given by the diagram. Is this automaton deterministic? Using a standard method construct a regular expression for the language defined by the automaton.

1721_figure.jpg

Question 7. Minimize the DFA with the set of states {1, 2, 3, 4, 5, 6, 7, 8}, input alphabet Σ = {a, b} initial state 1, final states {3, 4} and the transition function given by the table:

707_figure1.jpg

Let L be the language accepted by this DFA. Consider the equivalence relation RL on Σ* (thus RL⊆Σ* × Σ*) defined by: xRLy if and only if for all z ∈Σ*, xz∈ L iffyz∈ L. What is the index (the number of equivalence classes) of RL? Describe precisely at least one of the equivalence classes of RL (by giving an automaton, or a regular expression).

Question 8. Find a regular expression for the language L = {w ? {a, b}*: na(w) is even &nb(w) is odd}.

Question 9. Show that the language of binary strings of even length having the same number of 0s in its two halves is not regular.

Question 10. To show that Language containing equal number of a and b, can we select the string w as follows.
What could the adversary do in each case?
i) w = (ab)m
ii) w = am/2bm/2

Reference no: EM132254976

Questions Cloud

What is the role of technology in project management : What is the role of technology in project management and expectations for the development of the project management field aided by modern technologies.
Identify a state health policy and the tools : Identify a state health policy and the tools used to implement the policy. How do you think the political climate has affected the choice of policy tools.
Is the information in the segment table consistent : Is the information in the segment table consistent? If there are possible errors that you identify, what will their implication be?
Prepare entries to record the sale of the copiers : Prepare entries to record the sale of the copiers, the related warranty costs, and any accrual on December 31, 2017
Find a regular expression for the language : Theory of Computation – UE17CS254 - Show that the language of binary strings of even length having the same number of 0s in its two halves is not regular
Prepare the single-step income statement for the fiscal year : The following is the Easton Company adjusted Trial Balance. Use this information to prepare the Single-Step Income Statement for the fiscal year
Examining the behaviors and characteristics of people : NURS 6052 – Essentials of Evidence-Based Practice Research is a process of evaluating a concept or theory concerning a specific subject.
Steps are required for anyderivation : Show that if G is a Context Free Gramamr in Chomsky normal form, then for any string ?? L(G), |?|=n=1, then exactly 2n-1 steps are required for anyderivation of
Salesorderheader and salesterritory : Display salesorderid, orderdate, totaldue, and territory name from salesorderheader and salesterritory for all totaldue that are greater

Reviews

Write a Review

Theory of Computation Questions & Answers

  Farmers friend for their customer support systems

Create the two main documents that model the current processes at Farmers Friend for their Customer Support Systems (CSS).

  Formulate this problem as language

Consider the problem of testing whether a Turing machine M on an input w ever attempts to move its head left when its head is on the left-most tape cell.

  Produce a system sequence diagram consistent

Produce a system sequence diagram consistent with the normal flow detailed in the full use case description.

  Use algorithm np completeness of any of the problems

Use any algorithm we without writing out details of algorithm. In proving problem NP-complete, you may utilize NP completeness of any of the problems.

  Explain the concept of minimizing finite-state automata

Explain the concept of minimizing finite-state automata. Give an algorithm that carries out this minimization.

  Show turing machine recognizes class of truing-recognizable

Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that this type of Turing machine recognizes the class of Truing-recognizable languages.

  What is collaborative ?ltering

What are we referring to when we talk about a secondary use of data and What is collaborative ?ltering? Who uses it?

  The merger between uwear and paledenim is complete and this

the merger between uwear and paledenim is complete and this project is nearing completion. prior to the end of the

  Provide dfa-s accepting the languages over alphabet

Provide DFA's accepting the following languages over alphabet {0,1}. Set of all strings that, when interpreted as the binary integer, is a multiple of 5.

  Recognize sets and construct ndfsa

Construct deterministic finite-state automata that recognize each of these sets from I *, where I is an alphabet.

  Design a state machine that will control a vending machine

Design a state machine that will control a vending machine. Turn in your module and testbench code as well as a simulation waveform

  How can change the deterministic finite-state automaton

Use the procedure you described in Exercise I and the finite-state automata you constructed in Exercise II to find a deterministic finite-state automaton.

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