Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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

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

Ly

Problem 2. (a) Can a bipartite graph with 8 vertices be hamiltonian? Show an example or prove that any such
graph is not hamiltinian.
(b) Can a bipartite graph with 11 vertices be hamiltonian? Show an example or prove that any such graph is not
hamiltinian.
Problem 3. A problem APPROX-SAT is defined as follows. Given a CNF formula ¢ with k > 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 HAM-PATH

Problem 5. Two thieves steal a necklace with n beads of cost cy, cz, . . . , ¢, and want to divide them evenly (the
same cost).
(a) Prove that this problem is NP-complete assuming that all c; are integer.
(b) Suppose that there are only two types of beads. Either give a polynomial-time algorithm, or prove that the
problem is NP-complete.

Answered Same Day Nov 21, 2022

Solution

Vikas answered on Nov 22 2022
59 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 with 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.
) 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