Construct a dfa that recognizes languages

Assignment Help Theory of Computation
Reference no: EM13322884

1. Construct a DFA that recognizes each of the following languages. Unless otherwise noted we are assuming that ω ∈ {0,1}*. (A drawing of a state diagram is sufficient.)

(a)  {ω| the length of w is at least 4 }

(b)   {ωl ω contains the substring 0101}

(c)   { ω ∈ {3, 4}* when the characters of to are added up, their sum is divisible by seven. }

(d) The language represented by the regular expression (01 U 10)*.

2. Suppose that A is a regular language, with elements belonging to E* for some alphabet Σ*. Show that the following languages are also regular:

(a) A' = {ω ∈ Σ*|ω ∈ A}.

(b) AR = {ωR ∈ Σ*| ω ∈ A}. Where ωR represents the reverse of ω, i.e. if ω = ω1ω2......wn then ωR = ωnωn-1.......ω1.

(c) A= {ω ∈ Σ*| ω = x1x2x3......xkyk where x1x2........xkyk where x1x2........xk ∈ A y1y2 ........yk ∈ A and each xi, yi ∈ Σ

3. Suppose A is a regular language and let B be any language. Show that the following language is also regular A/B = {ω|ωx A for some x ∈ B}.

Reference no: EM13322884

Questions Cloud

How many kilojoules of heat were absorbed : An ice bag containing 212g of ice at 0 °C was used to treat sore muscles. When the bag was removed, the ice had melted and the liquid water had a temperature of 32.5°C.How many kilojoules of heat were absorbed?
Produce the result as the user instructed on the screen : Produce the result as the user instructed on the screen with appropriate messages.
An environmental science class : An ENVIRONMENTAL SCIENCE CLASS
How many mosquitos are required : The random noise level of a buzzing mosquito is 32dB and that heard in a typical classroom is 71dB. How many mosquitos are required to make a noise level equivalent to that heard ina typical classroom
Construct a dfa that recognizes languages : Construct a DFA that recognizes each of the following languages. Unless otherwise noted we are assuming that ω ∈ {0,1}*. (A drawing of a state diagram is sufficient.)
Write the program with at least two functions to solve : Write the program with at least two functions to solve the following problem.
Find the w what temperature : A bottle containing 1 kg of water (18.01g/mol) is boiled until evaporation is complete. Find w, q, U, H for the process. Hvap = 40.6kJ/mol. My question is when we find the w what temperature we use (room temperature or 100 C)
Compute the energy of a mole of a photon : Photosynthesis uses 660 nm light to convert carbon dioxide and water into gluclose and oxygen. calculate the energy of a mole of a photon
Design an application that declares three phonecalls : Design an application that declares three PhoneCalls. Set the length of one PhoneCall to 10 minutes, another to 11 minutes, and allow the third object to use the defaut value supplied by the constructor. Then, display each PhoneCall's value.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Write grammar for language consisting of strings

Write a grammar for the language consisting of strings that have n copies of the letter a followed by same number of copies of the letter b, where n>0

  Design turing machine having at least four nontrivial states

Design Turing machine (using Sipser notation) having at least 4 nontrivial (i.e., nonrejecting) states and at least six nontrivial (i.e., not to the rejecting state) transitions.

  Write mathematical formulation for non-terminal

Non-terminal A is useless if there is no derivation from start symbol to string of tokens in which A appears. Write a mathematical formulation of this property.

  Show polynomial-time algorithm for gdp

Goal is to find expedition of maximum profit. Either show that there exists polynomial-time algorithm for GDP, or show that corresponding decision problem is NP-complete.

  Use undecidability of allcfg to show problem is undecidable

Use undecidability of ALLCFG to illustrate that following problem is also undecidable: Given PDA M1 and FA M2, is L(M1) = L(M2)?

  Write algorithm for finding useless-productive nonterminals

Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Prepare a research strategy

A research strategy is a plan of action that gives direction to your efforts enabling you to conduct your research systemically rather than haphazardly.

  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).

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  If l recognized by dfa then language left half is regular

We showed to prove that if L can be identified by DFA then the language left half(L) = {x ∈ ∑*|∃y xy ∈ L and |x| = |y|} is also regular; here |x| means length of x.

  Create a mealy machine which produces the output

Create a Mealy Machine which produces the output of 1 whenever discrepancy in above pattern is detected, and produces the output of 0 otherwise. Write states meaningful names.

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