Queen's graph

Queen's graph
abcdefgh
8
d8 white circle
h8 white circle
a7 white circle
d7 white circle
g7 white circle
b6 white circle
d6 white circle
f6 white circle
c5 white circle
d5 white circle
e5 white circle
a4 white circle
b4 white circle
c4 white circle
d4 white queen
e4 white circle
f4 white circle
g4 white circle
h4 white circle
c3 white circle
d3 white circle
e3 white circle
b2 white circle
d2 white circle
f2 white circle
a1 white circle
d1 white circle
g1 white circle
8
77
66
55
44
33
22
11
abcdefgh
In an queen's graph, each square of the chessboard above is a vertex. There is an edge between any two vertices that a queen could move between; as an example, the vertices adjacent to d4 are marked with a white dot (i.e. there is an edge from d4 to each marked vertex).
Vertices
Chromatic numbern if
PropertiesBiconnected, Hamiltonian
Table of graphs and parameters

In mathematics, a queen's graph is an undirected graph that represents all legal moves of the queen—a chess piece—on a chessboard. In the graph, each vertex represents a square on a chessboard, and each edge is a legal move the queen can make, that is, a horizontal, vertical or diagonal move by any number of squares. If the chessboard has dimensions , then the induced graph is called the queen's graph.

Independent sets of the graphs correspond to placements of multiple queens where no two queens are attacking each other. They are studied in the eight queens puzzle, where eight non-attacking queens are placed on a standard chessboard. Dominating sets represent arrangements of queens where every square is attacked or occupied by a queen; five queens, but no fewer, can dominate the chessboard.

Colourings of the graphs represent ways to colour each square so that a queen cannot move between any two squares of the same colour; at least n colours are needed for an chessboard, but 9 colours are needed for the board.


From Wikipedia, the free encyclopedia · View on Wikipedia

Developed by Tubidy