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

  Millenium development goal

Millenium Development Goal has proved to be one of the most ambitious and difficult and global education starts with, well, education-informing and inciting into action those who are more capable of bringing about change.

  Explaining syntactically legal boolean expression

In this problem, we consider a very restricted subset of Boolean expressions. Define an operator to be one of  the four symbols: ¬, ∧, ∨, and →. Define a variable to be one of the five symbols

  Prove that l is not regular using pumping theorem

Prove that L is not regular. (Be particularly careful if you use the Pumping Theorem. You must choose a w that is actually in L.)

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Subset-sum problem

Calculate some number x= Sum - 2K. Create new set A by add x to the set B {b1, b2,....., bn} U {x}, where the summation now is B+x. it is possible to split the numbers in A into some subsets iff they can summing up to K:

  Write first four strings in lexicographic enumeration

Consider the language L = L1 ∩ L2, where L1 = {ww^R : w ∈ {a, b}* and L2 = {a^n b*a^n: n ≥ 0}. Write the first four strings in the lexicographic enumeration of L?

  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.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

  Create a parser to check expression for allowable form

Find out its grammatical structure with respect to given formal grammar. You are needed to create a parser which will check expression for allowable form.

  Design jflap truing machine takes input a tape

Design in JFLAP a Truing machine that takes as input a tape containing a series of n 1s, Where n >= 0, terminated by an = sign.

  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.

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