Ex4_3 Color Proof

advertisement
Graph 3-Colorability
Instance: a graph ๐บ = (๐‘‰, ๐ธ).
Question: Is there a color assignment
๐‘: ๐‘‰ → {๐Ÿ, ๐Ÿ, ๐Ÿ‘}
such that ๐‘(๐‘ฃ๐‘– ) ≠ ๐‘(๐‘ฃ๐‘— ) if ๐‘ฃ๐‘– and ๐‘ฃ๐‘— are adjacent?
Example 4: 3-SAT → Graph 3-Colorability
Given an arbitrary instance of 3-Sat, (i.e. a set of variables ๐‘ˆ = {๐‘ข1 , ๐‘ข2 , โ‹ฏ , ๐‘ข๐‘› } and a set of size
three clauses, = {๐‘1 , ๐‘2 , โ‹ฏ , ๐‘๐‘š } ) we must construct an equivalent instance of 3-Colorability.
The construction will be an example of “component design”. Each component will be a
subgraph that effectively performs the particular role.
Some of the vertices of the graph will correspond to variables. The way those vertices are
colored will determine a true/false assignment for the corresponding variables.
Example 4: 3-SAT → Graph 3-Colorability
Given an arbitrary instance of 3-Sat, (i.e. a set of variables ๐‘ˆ = {๐‘ข1 , ๐‘ข2 , โ‹ฏ , ๐‘ข๐‘› } and a set of size
three clauses, = {๐‘1 , ๐‘2 , โ‹ฏ , ๐‘๐‘š } ) we must construct an equivalent instance of 3-Colorability.
1. Color-to-True/False Correspondence
The “center” of our graph will be the triangle below. These vertices do not
correspond to variables but one have the color corresponding to “true”, one will have the
color corresponding to “false” and the third will be the “neutral” or “neither” or “not like
the others” color. We can assume these vertices are colored as below.
F
T
N
Example 4: 3-SAT → Graph 3-Colorability
Given an arbitrary instance of 3-Sat, (i.e. a set of variables ๐‘ˆ = {๐‘ข1 , ๐‘ข2 , โ‹ฏ , ๐‘ข๐‘› } and a set of size
three clauses, = {๐‘1 , ๐‘2 , โ‹ฏ , ๐‘๐‘š } ) we must construct an equivalent instance of 3-Colorability.
๐‘ขฬ…๐‘›
F
โ‹ฐ
๐‘ขฬ…2
T
N
๐‘ข๐‘›
๐‘ข2
๐‘ขฬ…1
๐‘ข1
2. True/False Determination
Now we create ๐‘› pairs of new vertices. One vertex of the ๐‘– ๐‘กโ„Ž pair will correspond to
variable ๐‘ข๐‘– and the other vertex will correspond to ๐‘ขฬ…๐‘– . Connect each pair to the “N”
vertex above to form a subgraph that ensures that each vertex corresponding to a
variable gets colored either blue = “T” or “red = F” and that the vertex
corresponding to its negation is colored the opposite.
Side Note:
Suppose that the edges leading away have forced the green and red colors as shown.
Can the rest of the graph on left be 3-colored? How about the graph on the right?
Example 4: 3-SAT → Graph 3-Colorability
Given an arbitrary instance of 3-Sat, (i.e. a set of variables ๐‘ˆ = {๐‘ข1 , ๐‘ข2 , โ‹ฏ , ๐‘ข๐‘› } and a set of size
three clauses, = {๐‘1 , ๐‘2 , โ‹ฏ , ๐‘๐‘š } ) we must construct an equivalent instance of 3-Colorability.
3. Satisfaction Testing
We will create one of the gadgets to the right
for each clause, ๐‘๐‘˜ . The vertices shown only appear within
one gadget. Arrows indicate connections to vertices
already introduced in above components.
We must find what the connections need to be so that the subgraph is 3-colorable
if and only if the clause is satisfied.
Download