Question: Problem 2 Prove that the following problems are in NP: COLOR: Given a set S of n numbered balls, and C _ ( 1 )
Problem
Prove that the following problems are in NP:
COLOR: Given a set S of n numbered balls, and CdotsCk be a collection of subsets
of S Is there a way to color the balls in SRG Ci
has all its elements of the same color?
Given a graph GVE we call a subset SsubeV of its vertices a dominating set if
every other node in G is adjacent to some node in the subset S
DOM: Given a graph G and an integer k is there a dominating set in G of size at
most k
Problem
Consider the following search problem:
SEARCHDOUBLESAT: Given a Boolean formula, Phi xdots,xn on n variables, find two
distinct satisfying assignments for Phi
Write an equivalent decision version for the search problem.
For the suggested decision version, show that the two problems are equivalent in
complexity, ie there is a polynomial time algorithm for the search version if and
only if there is a polynomial time solution for the decision version.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
