Английская Википедия:Grundy number

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:About

Файл:Greedy colourings.svg
An optimal greedy coloring (left) and Grundy coloring (right) of a crown graph. The numbers indicate the order in which the greedy algorithm colors the vertices.

In graph theory, the Grundy number or Grundy chromatic number of an undirected graph is the maximum number of colors that can be used by a greedy coloring strategy that considers the vertices of the graph in sequence and assigns each vertex its first available color, using a vertex ordering chosen to use as many colors as possible. Grundy numbers are named after P. M. Grundy, who studied an analogous concept for directed graphs in 1939.[1] The undirected version was introduced by Шаблон:Harvtxt.[2]

Examples

The path graph with four vertices provides the simplest example of a graph whose chromatic number differs from its Grundy number. This graph can be colored with two colors, but its Grundy number is three: if the two endpoints of the path are colored first, the greedy coloring algorithm will use three colors for the whole graph.[3]

The complete bipartite graphs are the only connected graphs whose Grundy number is two. All other connected graphs contain either a triangle or a four-vertex path, which cause the Grundy number to be at least three.[3]

The crown graphs are obtained from complete bipartite graphs <math>K_{n,n}</math> by removing a perfect matching. As a result, for each vertex on one side of the bipartition, there is exactly one vertex on the opposite side of the bipartition that it is not adjacent to. As bipartite graphs, they can be colored with two colors, but their Grundy number is <math>n</math>: if a greedy coloring algorithm considers each matched pair of vertices in order, each pair will receive a different color. As this example shows, the Grundy number can be larger than the chromatic number by a factor linear in the number of graph vertices.[4]

Atoms

Шаблон:Harvtxt defines a sequence of graphs called Шаблон:Mvar-atoms, with the property that a graph has Grundy number at least Шаблон:Mvar if and only if it contains a Шаблон:Mvar-atom. Each Шаблон:Mvar-atom is formed from an independent set and a Шаблон:Math-atom, by adding one edge from each vertex of the Шаблон:Math-atom to a vertex of the independent set, in such a way that each member of the independent set has at least one edge incident to it. A Grundy coloring of a Шаблон:Mvar-atom can be obtained by coloring the independent set first with the smallest-numbered color, and then coloring the remaining Шаблон:Math-atom with an additional Шаблон:Math colors. For instance, the only 1-atom is a single vertex, and the only 2-atom is a single edge, but there are two possible 3-atoms: a triangle and a four-vertex path.[3]

In sparse graphs

For a graph with Шаблон:Mvar vertices and degeneracy Шаблон:Mvar, the Grundy number is Шаблон:Math. In particular, for graphs of bounded degeneracy (such as planar graphs) or graphs for which the chromatic number and degeneracy are bounded within constant factors of each other (such as chordal graphs) the Grundy number and chromatic number are within a logarithmic factor of each other.[5] For interval graphs, the chromatic number and Grundy number are within a factor of 8 of each other.[6]

Computational complexity

Testing whether the Grundy number of a given graph is at least Шаблон:Mvar, for a fixed constant Шаблон:Mvar, can be performed in polynomial time, by searching for all possible Шаблон:Mvar-atoms that might be subgraphs of the given graph. However, this algorithm is not fixed-parameter tractable, because the exponent in its running time depends on Шаблон:Mvar. When Шаблон:Mvar is an input variable rather than a parameter, the problem is NP-complete.[3] The Grundy number is at most one plus the maximum degree of the graph, and it remains NP-complete to test whether it equals one plus the maximum degree.[7] There exists a constant Шаблон:Math such that it is NP-hard under randomized reductions to approximate the Grundy number to within an approximation ratio better than Шаблон:Mvar.[8]

There is an exact exponential time algorithm for the Grundy number that runs in time Шаблон:Math.[9]

For trees, and graphs of bounded treewidth, the Grundy number may be unboundedly large.[10] Nevertheless, the Grundy number can be computed in polynomial time for trees, and is fixed-parameter tractable when parameterized by both the treewidth and the Grundy number,[11] although (assuming the exponential time hypothesis) the dependence on treewidth must be greater than singly exponential.[9] When parameterized only by the Grundy number, it can be computed in fixed-parameter tractable time for chordal graphs and claw-free graphs,[9] and also (using general results on subgraph isomorphism in sparse graphs to search for atoms) for graphs of bounded expansion.[9][12][13] However, on general graphs the problem is W[1]-hard when parameterized by the Grundy number. [14]

Well-colored graphs

Шаблон:Main A graph is called well-colored if its Grundy number equals its chromatic number. Testing whether a graph is well-colored is coNP-complete.[3] The hereditarily well-colored graphs (graphs for which every induced subgraph is well-colored) are exactly the cographs, the graphs that do not have a four-vertex path as an induced subgraph.[2]

References

Шаблон:Reflist