Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Automata & Computation Expert

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

Automata & Computation, Computer Science

  • Category:- Automata & Computation
  • Reference No.:- M91971955

Have any Question?


Related Questions in Automata & Computation

Question 1hoare logic semantics for each of the parts below

Question 1 Hoare Logic Semantics For each of the parts below, justify your answer briefly. 1. For which programs S does {False} S {True} hold? 2. For which programs S does {True} S {False} hold? 3. For which programs S d ...

Prove or disprove the following proposed inference rules

Prove or disprove the following proposed inference rules for functional dependencies. A proof should be made by using the reflexive, augmentation, transitive, decomposition, union, and pseudotransitive rules. A disproof ...

Models of computation assignment -purpose - to improve and

Models of Computation Assignment - Purpose - To improve and consolidate your understanding of regular and context-free languages, finite-state and pushdown automata. To develop skills in analysis and formal reasoning abo ...

Question - design a task or function that will check the

Question - Design a task or function that will check the parity of a word for odd parity. The input to the task/function is a 5-bit word called data_in. If the parity of input data_in is not odd increment an error count ...

Question - design a state machine that will control a

Question - Design a state machine that will control a vending machine. The vending machine has 4 inputs, N, D indicating a nickel or dime was inserted as well as clk and an active high asynchronous reset. The vending mac ...

Models of computation assignment -purpose - to improve and

Models of Computation Assignment - Purpose - To improve and consolidate your understanding of regular and context-free languages, finite-state and pushdown automata. To develop skills in analysis and formal reasoning abo ...

Prove or disprove the following proposed inference rules

Prove or disprove the following proposed inference rules for functional dependencies. A proof should be made by using the reflexive, augmentation, transitive, decomposition, union, and pseudotransitive rules. A disproof ...

Regular expressions automatacomputabilitytheory of

Regular expressions, automata/computability/theory of computation How would I go about interpreting regular expressions? For example, how would I interpret the following in English: (0+1)*011 0*1*2* 0^(+)1^(+)2^(+)

Solve the question given belowprove the following statement

Solve the question given below Prove the following statement using Hall's Theorem. For any bipartite graph G=(U, V, E), if every node (either a left node or a right node) has exactly d neighbors, where d is an arbitrary ...

Iot and data analytics1 analyse the taskanalyse what is

IOT and data analytics 1. Analyse the Task Analyse what is expected of you. This includes careful reading of the assignment task as specified in the Subject Outline. The executive summary of the research project is to be ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As