Cs476 automata theory and formal languages

Assignment Help Theory of Computation
Reference no: EM13301382

Questions

1. State whether the following statements are true or not. You must give a BRIEF explanation or show a counter example to receive full credit.

(a)  If a language L is decidable then the language L is also decidable.

(b)  Every deterministic Turing machine (DTM) has an equivalent nondeterministic Turing ma­chine.

(c)  There exists a polynomial-time reduction from Boolean Satisfiability Problem (SAT) to Subset Sum Problem (SS).

(d)  If a problem P is NP-complete then the language induced by problem P is undecidable.

2. (20pts) Give a Turing Machine that decides language L = {wln : l'ild = n, w E {0, 1}1.

3. (30pts) Disprove (by reduction) or prove that the following languages are decidable.

(a) L = {(A) : A is a DFA and L(A) = L'(A)} where L' (A) = {7.1) : w E L(A)}

(b) L = {(A, S) : A is a TM and L(A) C S}

(c)  L = {(M1, M2) : M1 and M2 are TMs such that M1 accepts (M2) and M2 accepts (M1)}

4. (30pts) Number 3 is a lucky number (this is the reason why you have 3 assignments). So, we have two problems (both are related with number "3"): 3-SET-PARTITION and 3-GRAPH-PARTITION. Prove that they are NP-Complete.

(a)     3-SET-PARTITION: Let A, B, C be three finite, disjoint sets and let T be a subset of A x B x C. That is, T consists of triples (a, b, c) such that a E A, b E B and c E C. Given A, B, C, T and an integer k, the 3-SET-PARTITION problem decides whether there is a subset M of T (i.e., M C T), such that I* > k and for any two distinct triples (ai, b1, ci) E M and (a2, b2, c2) E M, we have al a2, bi b2 and ci c2.

(b)     3-GRAPH-PARTITION: Given an undirected graph G = (V, E), the 3-GRAPH-PARTITION problem decides whether the vertex set V can be partitioned into three disjoint subsets 3/4_, V2 and V3, such that for any two vertices va E V and vb E V, if (va, vb) E E, then va and vb cannot be placed into the same partition Vi, i E {1, 2, 3}.

Reference no: EM13301382

Questions Cloud

Describe what is the molar mass of the acid : A 0.481 gram sample of an unknown acid (HX) required 28.95 mL of 0.2013 M NaOH for neutralization to a phenolphthalein endpoint. What is the molar mass of the acid
What is the amplitude of the sum of these waves : Sketch a sinusoidal wave with an amplitude of 1 cm and a wavelength of 7 cm. What is the amplitude of the sum of these waves
Evaluate the following as true or false and explain : Suppose there is a tax cut, holding constant government purchases and all other factors affecting the AD curve. Illustrate the short run effects on output and the price level and LABEL them.
What is the difference in the effective annual rates : What is the difference in the effective annual rates (EFF%) charged by the two banks?
Cs476 automata theory and formal languages : CS476: Automata Theory and Formal Languages, State whether the following statements are true or not. You must give a BRIEF explanation or show a counter example to receive full credit.
Explain what is the molarity of the naoh solution : In acid based titration, 33.65mL of an 0.148 M M HCL solution were required to neutralize 25.00 mL of a NaOH solution . What is the molarity of the NaOH solution
What is the magnitude of the current carried by the wire : You are holding a compass 3.50m from a long straight electrical supply wire that is carrying a direct current perpendicularly to the local direction of the Earth's magnetic field. What is the magnitude of the current carried by the wire
Explain what is the molarity of the resulting solution : If 15.0 mL of 4.5 M NaoH are diluted with water to a volume of 500.0 mL, what is the molarity of the resulting solution? Please include explanation, balanced equation, and calculations.
Pricing objective and policies : Need a two page reflection paper on Adversiting and sales promotion. Pricing Objective and Policies

Reviews

Write a Review

Theory of Computation Questions & Answers

  Create a program that makes an object

Create a class named Pet, after creating the class, create a program that makes an object of the class and prompts the user to enter the name, type, and age of his pet.

  Express set as regular expression

Express the following set as a regular expression: The set of all strings of length at least three over {0,1} such that every three consecutive.

  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.

  Construct and dfa or lr items for grammar

Consider the following grammar: S S (S) | ε. Construct and DFA or LR(0) items for this grammar. Construct SLR(1) parsing table.

  Design and draw the state diagram

Design and draw the state diagram (graph-representation) of a deterministic finite-state automata that recognizes the language generated by the grammar

  A music store owner wants to have enough

A music store owner wants to have enough of the hottest CDs in stock so people who come to buy a particular CD won't be disappointed - and the store won't lose the profit. CDs that are not sold within a certain length of time go onto the sale tabl..

  Why every nonempty propositional clause itself satisfiable

Describe why every nonempty propositional clause, by itself, is satisfiable. Prove rigorously that every set of five 3-SAT clause is satisfiable, given that each clause mentions exactly three distinct variables.

  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.

  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.

  Create a program that reads integers

Create a program that reads integers in range 0 .. 9999. The event stops reading if -99 is entered. Your event should use Stack to store those numbers then it used Priority Queue to print out those numbers in ascending order.

  Explain proof of rice-s theorem for infinite language

If you perform reduction in proof of Rice's theorem for special case of property P: "infinite language", does this reduction also show that language P L = { | N is Turing machine.

  Front end and back end processes of office automation

Discuss the difference between the front end and back-end processes of office automation? Provide some examples in your workplace or that you come into contact with?

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