Problem 1. Show that, if L;, Ly and Lg are 3 languages over © = {0,1} such that L; 2 clausesC1, ...,Ck and n variables x1, . . ., Zn, is there an assignment of the variables such that exactly k — 1...

1 answer below »
You don't have to code it, but I need all 5 questions to be answered.
For the "prove" questions, you can explain them in the words.

Please avoid theplagiarism. Thank you!!



Problem 1. Show that, if L;, Ly and Lg are 3 languages over © = {0,1} such that L;


2 clauses C1, ...,Ck and n variables x1, . . ., Zn, is there an assignment of the variables such that exactly k — 1 clauses are true. (a) Prove that APPROX-SAT is in NP. (b) Prove that 3-SAT< papprox-sat.="" problem="" 4.="" a="" hamiltonian="" path="" in="" a="" graph="" g="" is="" a="" simple="" path="" that="" contains="" all="" the="" vertices="" of="" g.="" ham-cycle="" problem:="" given="" a="" graph="" g,="" is="" there="" a="" hamiltonian="" path="" in="" g?="" prove="" that="">

Answered Same DayNov 21, 2022

Answer To: Problem 1. Show that, if L;, Ly and Lg are 3 languages over © = {0,1} such that L; 2 clausesC1,...

Vikas answered on Nov 22 2022
41 Votes
PROBLEMS
Problem1
Show that if L1, L2, L3 are 3 languages over {0, 1} such that L1 <= L2 <= L3 then L1 <= L3.
If L1, L2, L3 are three languages w
ith different grammar and rules, and it is given that the first language L1 <= second language L2.
Then by the normal rules of Grammar it is clear that L1 will also comes under L3.
i.e. if L1 <= L2
L2 <= L3
Then, L1 <= L3 will always be true.
Problem2
a) Can a Bipartite Graph with 8 vertices be Hamiltonian?
Ans: We know that a graph is Hamiltonian if it contains a Hamiltonian Cycle i.e., cycle containing all vertices of graph. So, A bipartite Graph with 8 (even) vertices can be Hamiltonian as there will be four-four vertices in both parts of the graph.
Consider X = {x1, x2, x3, … , xn}
     Y = {y1, y2, y3, … , yn}
Then, the Hamiltonian cycle can be formed in the graph as:
C = {x1, y1, x2, y2, x3, y3, … , xn, yn, x1}
Means a cycle can be formed that will cover all the vertices. Hence, A 8 vertices Bipartite Graph can be Hamiltonian.
b) Can a Bipartite Graph with 11 vertices be Hamiltonian?
Ans: No, A simple explanation of this is that a Bipartite Graph with odd number of vertices cannot have Hamiltonian cycle as every cycle in Bipartite Graph contains an even number of vertices & edges.
Problem3
a) Prove that APPROX-SAT is in NP.
To prove that APPROVE-SAT is NP then we have to first understand the problem. And the problem requires us to find if there is an group of variables such that k-1...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here