Is l decidable give a brief explanation for your answer

Assignment Help Theory of Computation
Reference no: EM131215978

Q1. Let L = {(M): M has an even number of states}. Is L decidable? Give a brief explanation for your answer.

Q2. Let L = {(M): L(M) has an even number of elements}. Is L decidable? Give a brief explanation for your answer.

Q3. Consider two languages L1 and L2 such that L1 ∩ L2 = Φ. Show that if L1- and L2- are both recursively enumerable, then there exists a decidable language L such that L1 ⊆ L and L2 ⊆ L.

Q4. Let 3-SAT-BOUNDED be defined as

3-SAT-BOUNDED = {Φ : Φ is a satisfiable 3-CNF and every variable appears in at most 100 clauses}.

Show that 3-SAT-BOUNDED is NP-complete.

Hint: Consider the CNF Φ = (x1 v x2 v x3) ∧ (x1 v x2 v x4). In this 3-CNF, the variable x1 and x2 appear in two clauses whereas x3 and x4 in one of the clauses. For the version of 3-SAT we showed to be NP-complete in the class, there might be a variable which can appear in say all the clauses, or half of the clauses. In order to prove 3-SAT-BOUNDED is NP-complete, show that given any 3-CNF Φ, there is an equivalent 3-CNF Φ' in which every variable appears in at most 100 clauses and Φ' is satisfiable if and only if Φ is satisfiable. Also, the number 100 is irrelevant. If you can do the reduction with a larger number (say 1000), I will accept that.

Q5.(a) Show that L = {(M)||L(M)| ≥ 2} is recursively enumerable.

(b) Show that L = {(M)||L(M)| =2} is not recursively enumerable.

Q6. A function f : {0, 1}* → {0, 1}* is said to be length-preserving if for all x ∈ {0, 1}*,|f(x)| = |x|. In other words, for any n, strings of length n get mapped to strings of length n under the map f. Further, assume that

  • f is one-one.
  • f is onto.
  • f is polynomial time computable.

Note that the first two bullets ensure that f-1: {0, 1}* → {0, 1}* is a well-defined function which is also one-one, onto and length-preserving. However, it need not be polynomial time computable. Further, let g : {0, 1}* → {0, 1} be another polynomial time computable function.

  • Prove that L = {y|g(f-1(y)) = 1} is in NP.
  • Prove that L = {y|g(f-1(y)) =1} is in NP.

Hint: Please make sure that your "proof" does not somehow require f-1 to be efficiently computable.

Q7.(a) Suppose you come up with an algorithm running in time 2O(√n) for 3-SAT (where the input length is n). Will it necessarily imply that for all L ∈ NP, L admits an algorithm of running time 2O(√n)? (where n is the length of the instance in L). Reason briefly.

(b) Suppose you come up with an algorithm running in time nO(log n) for 3-SAT (where the input length is n). Will it necessarily imply that for all L ∈ NP, L admits an algorithm of running time nO(log n)? (where n is the length of the instance in L). Reason briefly.

Q8. Let B = {(M1, M2)|L(M1)= L(M2)}. Show that B is undecidable.

Q9. Let L ∈ NP. If P = NP, is L- ∈ P? If P ≠ NP, is L- ∈ P?(justify briefly).

Reference no: EM131215978

Questions Cloud

The experience of english learning : Read the attached paper. and check it grammaticaly. - Paper topic is: "The experience of my English Learning".
Discuss the differences in tax treatment : From the U.S. Tax Guide for Aliens, discuss the differences in tax treatment between U.S. citizens who earn foreign source income, the tax treatment of aliens, and resident aliens. Identify at least two (2) tax laws regarding either reporting income ..
Write a short paper about the colored farmers alliance : Write a short paper about The Colored Farmers Alliance. The short paper must include a cover page with your name, course number and course title, instructor's name, and date.
Using the percentage of net sales method : The general ledger account for Accounts Receivable shows a debit balance of $50,000. Allowance for Uncollectible Accounts has a credit balance of $1,000. Net sales for the year were $494,000. Using the percentage of net sales method, the allowance fo..
Is l decidable give a brief explanation for your answer : Let L = {(M): M has an even number of states}. Is L decidable? Give a brief explanation for your answer. Let L = {(M): L(M) has an even number of elements}. Is L decidable? Give a brief explanation for your answer
Cost of goods manufactured for the month ended : The following information is available for O'Neal Manufacturing Company for the month ending January 31, 2016: Determine O'Neal's cost of goods manufactured for the month ended January 31, 2016. Statement of Cost of Goods Manufactured
What is the equivalent wavelength of this particle : A tennis ball, having a mass of 50 g, travels with a velocity of 200 km/h. What is the equivalent wavelength of this "particle"? Compare your result with that obtained in Problem I above and discuss the difference.
Write an essay about books breton andre soluble fish : Write short essays about these books including how the author think about surrealism, what the book mainly talk about, what's your opinion about the book, the part you like, how the book contribute to the surrealism and so forth.
What is a boundary condition and trial solution : Write a mathematical expression for a vibration (vibrating string, for example) and for a wave. Familiarize yourself with the way these differential equations are solved. What is a "trial solution?" What is a boundary condition?

Reviews

len1215978

9/22/2016 2:12:30 AM

Please make sure your answers are clear (and whenever possible, concise). You may use any theorem we proved in the class. Likewise, for showing NP-completeness, you can use any problem we proved to be NP-complete either in the class or in the homework. A few things: Take your time but be clear in what you’re writing. The onus of exposition is on you. If you need clarifications concerning a question, email me. Do not make the wrong assumption.

Write a Review

Theory of Computation Questions & Answers

  Students will conduct primary as available and secondary

students will conduct primary as available and secondary research present opinions while they compare and contrast

  Find cfgs for the languages

Find CFGs for the languages over the alphabet sigma = {a   b}:

  1 produce a report of up to 500 words on the topic talent

1. produce a report of up to 500 words on the topic talent planning in operation. nbspnbspnbspnbsp please ensure that

  Explain monotone instance of satisfiability

Given monotone instance of Satisfiability, together with number k, problem of Monotone Satisfiability with Few True Variables asks: is there satisfying assignment for instance in which at most k variables are set to 1.

  Deterministic finite and non-deterministic finite automata

Describe the difference between a Deterministic Finite Automata and Non-Deterministic Finite Automata. In general, which one is expected to have less number of states ?

  Your executive directors are proposing to reduce the size

your executive directors are proposing to reduce the size of the hr section or even close the function completely. you

  Write down the minimum expressions for the outputs

Assume that invalid BCD digits do not occur as inputs. Construct the truth table. Write down the minimum expressions for the outputs by inspection of the truth table. (Hint: Try to match output columns in the table with input columns .)

  - write a short guidance note explaining 3 purposes of

- write a short guidance note explaining 3 purposes of induction and how these can benefit individuals and

  Write an unambiguous grammar

Write an unambiguous grammar for the given languages- You have to prepare unambiguous grammar for the above languages. Please help! I am stuck on this question

  Create and dfa or lr items for grammar

Create and DFA or LR(0) items for this grammar. Is this grammar LR(0) parsing table? If not, explain LR(0) conflict. If so create LR(0) parsing table.

  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?

  Provide state diagram of dfas recognizing the languages

Give nondeterministic finite automata accepting the set of strings of 0's and 1's such that there are two 0's separated by a number of positions that is a multiple of 3.

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