Exercise 3
(Graph coloring) A graph is an ordered pair , with a set of vertices, and a set of edges, which are 2-element subsets of . An -coloring of a graph is an assignment of one of colors to each vertex of in such a way that any two vertices connected by an edge have distinct colors. In this exercise we will assume that has finitely many edges, and we will label the vertices by the set .
Let be any field with at least elements, and let be a subset with elements. These elements will represent the colors. An -coloring of is then equivalent to assigning a value for (giving each vertex a color) such that for each edge (making sure adjacent vertices have distinct colors).
Let , and .
() Show: is a polynomial in , and show that giving an -coloring of is equivalent to solving the following system of equations in variables :
() Show that an -coloring for exists if and only if the ideal is proper.
This allows us to use software capable of working with Gr"obner bases to find information about coloring of finite graphs.
() Consider the graph with eight vertices and 14 edges , , , , , , , , , , , , , . Show that, up to permutation of the colors, has a unique -coloring. (Hint: consider with colors . We may without loss of generality assume that vertex 1 will get color 0, and the adjacent vertex 3 will get color 1. Use computer software to compute a (reduced) Gr"obner basis for the ideal generated by the , and and ).
() Use Gröbner bases to show that the graph with nine vertices and 22 edges , , , , , , , , , , , , , , , , , , , , , has precisely four 4-colorings up to permutations of the colors. Show that if the edge is added then cannot be 4-colored.
Exercise 3() of week 12
Consider the graph with eight vertices and 14 edges , , , , , , , , , , , , , . Show that, up to permutation of the colors, has a unique -coloring.
First, we define our field , and our polynomial ring over with 8 variables .
We also fix a monomial ordering on R, the degrevlex/grevlex ordering.
File "<ipython-input-1-68dac69772df>", line 2
R.<x1,x2,x3,x4,x5,x6,x7,x8> = PolynomialRing(K, order='degrevlex')
^
SyntaxError: invalid syntax