ArticlePDF Available

Abstract and Figures

A legal placement of Queens is any placement of Queens on an order N chessboard in which any two attacking Queens can be separated by a Pawn. The Queens independence separation number is the minimum number of Pawns which can be placed on an N × N board to result in a separated board on which a maximum of m independent Queens can be placed. We prove that N + k Queens can be separated by k Pawns for large enough N and provide some results on the number of fundamental solutions to this problem. We also introduce separation relative to other domination-related parameters for Queens, Rooks, and Bishops.
Content may be subject to copyright.
Independence and Domination Separation on
Chessboard Graphs
R. Douglas ChathamMaureen DoyleGerd H. Fricke
Jon Reitmann∗‡ R. Duane Skaggs∗§ Matthew Wolff
Abstract
Alegal placement of Queens is any placement of Queens on an order
Nchessboard in which any two attacking Queens can be separated by
a Pawn. The Queens independence separation number is the minimum
number of Pawns which can be placed on an N×Nboard to result in a
separated board on which a maximum of mindependent Queens can be
placed. We prove that N+kQueens can be separated by kPawns for
large enough Nand provide some results on the number of fundamental
solutions to this problem. We also introduce separation relative to other
domination-related parameters for Queens, Rooks, and Bishops.
1 Introduction
The well-known 8-Queens problem involves placing 8 Queens on an 8 ×8 chess-
board such that no two Queens attack each other. A collection of some refer-
ences to the N-Queens problem can be found in [15], [18] includes a variety of
other interesting chessboard problems, and a storage scheme for parallel memory
systems based on solutions to the N-Queens problem is given in [10]. Various
algorithms for solving the N-Queens problem are given in [1, 8, 9]. We primarily
use the notation and terminology of [12, 13].
In January 2004, the Chess Variant Pages [2] proposed a variation of the
traditional 8-Queens problem. The new problem is to place nine Queens on an
8×8 board by using Pawns to block all Queens that would otherwise attack
each other. An example in which three Pawns were needed to separate the nine
Queens was provided. A contest problem was to determine the least number of
Department of Mathematics and Computer Science, Morehead State University, More-
head, KY 40351 USA
Department of Computer Science, Northern Kentucky University, Highland Heights, KY
41099 USA
Undergraduate student
§d.skaggs@moreheadstate.edu (Corresponding author)
Pyramid Controls, Inc., Cincinnati, OH 45203 USA
1
Pawns needed to separate these nine Queens. We say the chessboard (graph)
resulting from the addition of one or more Pawns is a separated board (graph).
Alegal placement of Queens is defined in [5] to be any placement in which any
two attacking Queens can be separated by a Pawn. The Queens independence
separation number,sQ(β, m, N ) is the minimum number of Pawns which can be
placed on an N×Nboard to result in a separated board on which a maximum
of mindependent Queens can be placed. More generally, for any set of natural
numbers Aand graph parameter πdefined on the Queens graph, we define
sQ(π, A, b) to be the minimum number of Pawns on a b×bboard which causes
the value of πto be an element of the set A. The upper separation number
relative to a given parameter, SQ(π, A, b), is the maximum cardinality of a
minimal set of Pawns that results in πtaking a value in A.
We consider sQ(π, A, b) for π=γ, β , i, where γis the domination number,
βis the independence number, and iis the independent domination number. If
A={a}and no confusion will arise, we denote sQ(π, A, b) by sQ(π, a, b) rather
than sQ(π, {a}, b). Similarly, sQ(π, [x, y], b) will be used when A={[x, y ] : x
N∪ {0}, y N}.
It is proved in [5] that sQ(β, N + 1, N) = 1 for N > 5 and conjectured that
sQ(β, N +k, N) = kfor large enough N. We prove this conjecture, namely that
if N > max{87 + k, 25k}then N+kQueens can be safely placed on the board
by using kPawns to separate the Queens. We also consider these values for
other chess pieces such as Bishops (sB(π, A, b)) and Rooks (sR(π, A, b)).
2 Domination separation
A set Sof vertices in a graph is a dominating set if every vertex in the graph is
either in the set Sor is adjacent to a vertex in S. For a graph G, the minimum
number of vertices in a dominating set is denoted γ(G). A set of vertices S
is independent if no two vertices in Sare adjacent. The maximum cardinality
of a maximal independent set is denoted β(G) while the minimum cardinality
of a maximal independent set is denoted i(G). It is well known [12] that an
independent set is maximally independent if and only if it is dominating, so
i(G) is also called the independent domination number.
We consider domination separation for Queens, Bishops, and Rooks. We
begin with a useful lower bound for the number of Pawns needed to reduce the
domination number of a given chessboard graph. For any chess piece Π, let ΠN
denote the order Ngraph associated with that piece.
Lemma 1 For any chess piece Πand γN)> k,sΠ(γ, γN)k, N )k.
Proof. It is shown in [4] that removal of a single vertex from a graph cannot
decrease the domination number by more than 1, and removal of an edge alone
never decreases the domination number.
Since placing a Pawn has the same effect as removing one vertex and some
edges, the result follows inductively.
2
2.1 The Queens graph
The domination number γ(QN) is the minimum number of Queens needed to
ensure that every square of an N×Nboard is either occupied or under attack.
It can be shown that five Queens are necessary in order to dominate an 8 ×8
board. While the value of γ(QN) is unknown for all but small values of N, the
current best upper bound for the domination number of the Queens graph is
γ(QN)(101N/195) + O(1) and is due to Burger and Mynhardt [3].
A computer search of all possible cases for n9 gives the following propo-
sition.
Proposition 2 For N9, one Pawn never decreases γon a separated Queens
graph, and one Pawn increases γon a separated Queens graph only if N= 3 or
6.
It can be deduced from an example on page 15 of [18] that it is possible
to decrease the domination number of a separated Queens graph by using two
Pawns. This gives rise to the following two open questions.
Open Question 1 For which size boards will two Pawns decrease γ?
Open Question 2 Can two Pawns decrease γby two?
2.2 The Bishops graph
Values for independence in the Bishops graph were given in [5].
Proposition 3 ([5]) Let N > 0be given.
1. For N3,sB(β, 2N1, N ) = 1.
2. For odd N3,sB(β , 2N, N ) = 1.
Since it is shown in [7] that γ(BN) = i(BN) = N, it follows that sB(γ, N, N ) =
sB(i, N, N ) = 0.
From [12], the open neighborhood N(v) of a vertex vis the set of all vertices
adjacent to vwhile the closed neighborhood of vis N[v] = N(v)∪ {v}. Let S
be a set of vertices with uS. A vertex vis said to be a private neighbor of u
with respect to Sif N[v]S={u}.
The proof of the following lemma is modeled after the proof of Theorem 1
in [7], which also appears as Theorem 6 in [6].
Lemma 4 Let Sbe a minimum (independent) dominating set of an even order
NBishops graph. If one Bishop attacks no other Bishop, then that Bishop has
a private neighbor other than the square it occupies.
Proof. We prove this by contradiction. Suppose we have a minimum (indepen-
dent) dominating set with a Bishop bthat attacks no other Bishop and has no
3
private neighbors other than its own square. Suppose, without loss of generality,
that bis on a white square.
Consider either of the diagonals occupied by b. Since bhas no private neigh-
bor other than its own square and since bdoes not attack other Bishops, every
square in the open neighborhood of bmust be attacked by another Bishop not
in the closed neighborhood of b. Such a Bishop that attacks one square of our
chosen diagonal cannot attack another square on that same diagonal. So the
white squares must contain at least as many Bishops as there are squares on
our diagonal.
If the diagonal has more than N/2 squares we have a contradiction, since in
a minimum (independent) dominating set on an even order Bishops graph N/2
are on black squares and N/2 are on white squares. (The Bishops graph has
domination number Nand is a disjoint union of two isomorphic halves, so each
half has domination number N/2.) So each diagonal occupied by bhas at most
N/2 squares. So the closed neighborhood of bhas at most 2(N/2) 1 = N1
squares. But this contradicts the fact that every square on the Bishops graph
has at least Nsquares in its closed neigborhood.
Proposition 5 For even N,sB(γ, N 1, N )2and sB(i, N 1, N)2.
Proof. Suppose to the contrary that 1 Pawn is sufficient to reduce the domina-
tion number. That is, suppose there is a placement of N1 Bishops that cover
all but one square on the board, which contains a Pawn. The square containing
the Pawn cannot be attacked by any of the Bishops, else removal of the Pawn
would yield a covering of the entire board with only N1 Bishops.
Replacing the Pawn with a Bishop byields a minimum dominating set with
the property that no other Bishop attacks b. By Lemma 4, it must be the case
that bhas a private neighbor not attacked by any other Bishop. This contradicts
the assumption that N1 Bishops can cover all but one square.
Proposition 6 For odd N3,sB(γ, N 1, N) = sB(i, N 1, N ) = 1.
Proof. First note from Lemma 1 that the domination number cannot decrease
by more than 1.
Label the columns from kto kon a 2k+ 1 board, and label the rows from
0 to 2k+ 1. To reduce the domination number, place the Bishops on column
0 then replace the Bishop on row 0 with a Pawn. The resulting set of N1
Bishops is a minimum independent dominating set.
Note that placing a single Pawn at the center of a 3 ×3 Bishops graph
increases the domination number by three to 6.
Proposition 7 For N > 3, the addition of a single Pawn increases the (in-
dependent) domination number on a separated Bishops graph by no more than
2.
Proof. We consider two cases, one in which the Pawn is not at the exact center
of the board, and one with the Pawn at the exact center. Note in the second
4
B
B
B
B
B
B
P0
1
˙
˙
˙
2k+ 1
k· · · 0· · · k
Figure 1: For odd N3, sB(γ , N 1, N ) = 1.
case that the board must be of odd order.
Case I: Suppose the Pawn is not at the exact center of the board. If the Pawn
is not on the column closest to the center, place Bishops on that column. If
the Pawn is on the column closest to the center, then rotate the board prior to
placing the Bishops. Suppose, without loss of generality, that the Pawn is to the
left of the Bishops. The Bishops cover everything to their right while the Pawn
blocks at most two diagonals, both of which are to the left of the Pawn. Place
Bishops on those diagonals to the left of the Pawn. This yields an independent
dominating set with at most N+ 2 Bishops.
Case II: Suppose the Pawn is at the exact center of the board. Label this square
as the origin of a rectangular coordinate system. Place Bishops on squares
(0,±1), (1,±1), and (1,±1). For 5 < j N, place Bishops on (0,±(j1)/2).
It is easy to see this yields an independent dominating set of order N+ 1.
Thus, addition of a single Pawn can never increase the (independent) domi-
nation number by more than 2.
Note that in certain cases the maximum increase of 2 is possible. Number the
rows and columns of the Bishops board with row 0 at the bottom and column
0 to the left. Computer searches for odd N11 show that the domination
number can be increased to N+ 2 by placing a Pawn in row b(N+ 1)/4cand
column b(N+ 4)/4c.
Conjecture 3 On an odd order Bishops board with N3, the domination
number is increased by 2if a single Pawn is placed in row b(N+ 1)/4cand
column b(N+ 4)/4c.
5
2.3 The Rooks graph
It is shown in [5] that for Nk+2, kPawns suffice to increase the independence
number of the Rooks graph to N+k. We consider the number of Pawns needed
to change the domination number. Note that since NRooks are necessary to
dominate an N×Nboard [13], it follows that sR(γ, N , N) = 0.
Proposition 8 For N2,sR(γ, N 1, N ) = sR(i, N 1, N ) = 1.
Proof. Label the columns from 1 to Nand the rows from 1 to Nbeginning
in the upper left of the board. Suppose that a single Pawn is placed in column
r, where 1 rN. Place Rooks in the remaining columns, with the row
determined by any permutation of the columns which contain Rooks.
Proposition 9 For Nk,sR(γ, N k, N ) = sR(i, N k, N ) = k2.
Proof. Let m=sR(γ, N k, N ). Suppose we have an order Nchessboard
with mPawns and NkRooks such that the Rooks dominate those squares
not occupied by Pawns. First we note that no Rook attacks any of the Pawns
since otherwise we could remove the attacked Pawns, which contradicts the
minimality of m.
Next we note that if a row (column) contains p(>0) Pawns, then there
must be at least NpRooks on the board, since we need a distinct Rook
to cover each of the empty squares in the row (column). Since we want the
(independent) domination number to be Nk, each nonempty row or column
must have at least kPawns. If k= 0, we need no Pawns. If k > 0, we need at
least one Pawn so at least one row has a Pawn. That row must have kPawns,
and each of those Pawns must occupy a column with at least kPawns. So the
board must have at least k2Pawns.
Finally, we note that k2Pawns suffice: Place the k2Pawns in the corner
formed by the first krows and kcolumns, and place the Rooks on the unoccupied
squares of the main diagonal. (See Figure 2).
Corollary 10 Placing two or three Pawns on an order Nboard reduces the
Rooks (independent) domination number by at most 1.
It is possible to increase the domination number on the Rooks graph by
adding Pawns. For example, by placing Pawns on all the squares of the second
and fourth columns and rows of a 5 ×5 board, we can increase the domination
number from 5 to 9.
Open Question 4 Under what conditions can adding Pawns increase the Rooks
domination number?
3 Queens independence separation
For an N×Nchessboard, we wish to place N+kindependent Queens.
6
P
P
P
P
P
P
P
P
P
R
R
R
R
R
R
Figure 2: For N= 9, sR(γ, N 3, N ) = 9.
Theorem 11 For each positive integer kand N > max{87+k, 25k},sQ(β , N +
k, N ) = k.
Proof Sketch. There are seven patterns to consider. Each begins with a known
solution [9] to a smaller N-Queens problem. The proof that each pattern holds
involves elementary but extremely tedious computations. Let n=Nk.
Pattern I. Let n0 mod 6, n30, and k < n/8.
Solution: Number the rows k, · · · ,1,0,· · · , n1 and the columns 0,1,· · · , n
1 + k. Place the Queens at (2i+ 1, i) for i= 0,· · · n/21, (2in, i) for i=
n/2,· · · , n1, (i, n12i) for i= 1,· · · , k, and ((nnmod 12)/43+2i, n+
i1) for i= 1,· · · , k. Place the Pawns at ((nnmod 12)/43+2i, n 12i)
for i= 1,· · · , k.
Pattern II. Let n4 mod 6, n22, and k < n/8.
Solution: Number the rows k, · · · ,1,0,· · · , n1 and the columns 0,1,· · · , n
1 + k. Place the Queens at (2i+ 1, i) for i= 0,· · · n/21, (2in, i) for
i=n/2,· · · , n1, (i, n 12i) for i= 1,· · · , k, and ((n12 +nmod 12)/4
2+2i, n +i1) for i= 1,· · · , k . Place the Pawns at ((n12 + nmod 12)/4
2+2i, n 12i) for i= 1,· · · , k.
Pattern III. Let n1 mod 6, n23, and k < (n1)/8.
Solution: Number the rows k1,· · · , n 2 and the columns 1,· · · , n 2+ k.
Place the Queens and Pawns as in Pattern I with n:= n1. Place an extra
Queen at (k1, n 2 + k).
7
Pattern IV. Let n5 mod 6, n23, and k < (n1)/8.
Solution: Number the rows k1,· · · , n 2 and the columns 1,· · · , n 2+ k.
Place the Queens and Pawns as in Pattern I with n:= n1. Place an extra
Queen at (k1, n 2 + k).
Pattern V. Let n2 mod 6, n56, and kn/10.
Solution: Number the rows k, · · · ,1,0,· · · , n1 and the columns 0,1,· · · , n
1 + k. Place the Queens at ((n6)/4 + ((n2) mod 12)/4+2i, n 1 + i)
for i= 1,· · · , k, (i, n 82i) for i= 1,· · · , k , ((2i+ 4) mod n, i) for
i= 0,· · · , n/21, and ((2i+ 7) mod n, i) for i=n/2,· · · , n 1. Place
the Pawns at ((n6)/4 + ((n2) mod 12)/4 + 2i, n 82i) for i= 1,· · · , k.
Pattern VI. Let n3 mod 12, n87, and kn/24.
Solution: Number the rows k, · · · ,1,0,· · · , n1 and the columns 0,1,· · · , n
1 + k. Place the Queens at (i, n 11 3i) and (n/33 + 3i+ ((n3)
mod 12)/6, n1+i) for i= 1,· · · , k, ((3i+5) mod n, i) for i= 0,1,· · · , n/31,
((3i+ 9) mod n, i) for i=n/3,· · · ,2n/31, and ((3i+ 13) mod n, i) for i=
2n/3,· · · , n1. Place the Pawns at (n/33+3i+((n3) mod 12)/6, n113i).
Pattern VII. Let n9 mod 12, n87, and kn/24.
Solution: Number the rows k, · · · ,1,0,· · · , n 1 and the columns 0,1,
· · · , n1+ k. Place the Queens at (i, n 113i) for i= 1,· · · , k, (n/3+1, n),
(n/3+3i1, n1+i) for i= 2,· · · , k, ((3i+5) mod n, i) for i= 0,1,· · · , n/31,
((3i+ 9) mod n, i) for i=n/3,· · · ,2n/31, and ((3i+ 13) mod n, i) for i=
2n/3,· · · , n1. Place the Pawns at (n/3+1, n14) and (n/3+3i1, n113i)
for i= 2,· · · , k.
The bounds on Ngiven in Theorem 11 are not best possible for all k. By
computer searches with N < 91, we have been able to show that N7 and
N8 are sufficiently large for k= 2 and k= 3 respectively. From Theorem
11, we see that N > 25kis large enough for k4. However, this bound can
most likely be decreased as well.
The following proposition provides some examples for which more than k
additional Pawns are needed to increase the independence number by k.
Proposition 12 Some values of sQ(β , m, N).
1. (Zhao [19]) sQ(β, 6,5) = 3.
2. sQ(β, 8,6) = 3.
3. sQ(β, 9,5) = 16.
4 An inverse problem
Given a board of order N, consider the maximum number of independent Queens
that can be placed on the board if kPawns have already been placed. Note that
8
the maximum number of Queens that can be placed is no more than N+k. In
many cases, the maximum may be considerably less.
The following proposition answers a question of Hammons [11] and describes
possible locations of Pawns if N+kindependent Queens and kPawns are to
be placed.
Proposition 13 If N+kQueens and kPawns are placed on an N×Nboard
so that no two Queens attack each other, then no Pawn can be on the first or
last row, first or last column, or any square adjacent to a corner.
Proof. First we note that a Pawn divides a row or column into at most two
independent parts, so pPawns divide a row or column into at most p+ 1 parts.
Suppose there is a Pawn on the first row. If there are pPawns on that row,
there are at most pQueens in the first row. With kpPawns in other rows,
we can place at most kp+N1 Queens in those rows. So we can place at
most p+kp+N1 = N+k1 independent Queens, which contradicts the
fact that there are N+kindependent Queens on the board. So no Pawn can
be on the first row. Symmetric arguments show there are no Pawns on the last
row, or the first or last column.
Now consider the squares diagonally adjacent to a corner. Without loss of
generality, suppose a Pawn is in the second row and second column. There
must be a Queen in the first column of the second row, else there are at most
N+k1 parts of rows to place Queens. Similarly, there must be a Queen in the
first row of the second column. However, these two Queens attack each other.
Thus, there can be no Pawn in the second row and second column. Symmetric
arguments complete the proof.
Based on computer searches, we conjecture that for N10 a Pawn can be
placed in any square not included in the above proposition in order to allow
placement of N+ 1 independent Queens on an N×Nboard.
5 Counting fundamental solutions
Our primary focus so far has been to determine whether even a single solution
exists for a given Nand k. A more interesting and difficult problem arises when
we consider the total number of solutions to separation problems. A fundamental
solution of a chessboard problem is a class of solutions such that all the members
of the class are rotations or reflections of one another. Knuth [16] mentions the
existence of a method for counting the number of solutions to the N-Queens
problem without actually generating the solutions. Note, however, this method
is still exponential. We discuss an implementation of a method for generating
fundamental solutions of the Queens independence separation problem which is
an improvement of traditional backtracking techniques.
9
5.1 Exact covers and dancing links
Given a set, S, an exact cover of Sis a set {S1, S 2, . . . , Sk}of subsets of S
where all elements of Sare in one and only one subset Sj. A typical problem
is to find all exact covers for a given set Sunder some additional constraints
for the subsets. Solutions to this problem are found using backtracking and
recursion. Backtracking and recursion require potential solutions to have ele-
ments ‘appended’ and ‘removed’ when either a solution is found or a constraint
violated.
The Dancing Links (DLX) algorithm was first presented in 1979 by Hitotu-
matu and Noshita [14]; over twenty years later, Knuth [16] named and publicized
the technique as an efficient method for implementing backtracking algorithms.
In particular, [16] provides applications of DLX for solving various forms of
exact cover problems. DLX is a more efficient way to implement backtracking
algorithms due to a data structure which, by design, provides faster ‘append’
(cover) and ‘removal’ (uncover). The primary goal in using this method is to
save computation time rather than space.
The generalized cover problem does not require that all elements of Sbe in
the set of subsets {S1, S2, ..., S k}. For example, consider the N-Queens problem.
The rows of the chessboard require an exact cover with one Queen in each row,
as do the columns. The diagonals, however, can have at most one Queen to
have a valid solution. Therefore, the N-Queens problem is a generalized exact
cover problem.
As defined in [16], a universe is a multi-dimensional data structure composed
of intersecting double, circularly linked lists. The components of the universe
are either a header node, Column Header, or Column Object. The universe is
an expanded representation of the N×Nchessboard.
Knuth defines each row of the chessboard as a rank R, the column of the
chessboard as a file F, negative diagonal from lower right to upper left as A, and
positive diagonal from lower left to upper right as B. As a result, each block
of the chessboard is defined by a combination of specific, horizontally linked,
Column Objects R,F,A, and B. The rank and file columns are the primary
columns and must be covered. The two diagonals are secondary columns and
may each contain zero or one Queen.
The header node links together the Column Headers of the universe. There
is one Column for each R,F,A, and B. The Column Headers contain the name
of the universe Column (e.g., R1) and link vertically the number of chessblocks
Column Objects.
The Column Objects link horizontally to the other three Columns to define
the chessboard block.
5.1.1 N-Queens universe
The N-Queens universe consists of a header node, Column Headers, and Column
Objects. The header node is created and linked to itself in the constructor of
its class. Then, 2NColumn Headers are added to represent the Nranks and N
10
Figure 3: Chessboard and Corresponding Universe
columns. Then 2(2N1) Column Headers are added for the negative diagonal
Aand positive diagonal B.
The Column Objects are the final object types added. Each rank and file
have NColumn Objects. The number of Column Objects for Aand Bis de-
termined by the number of chessblocks contained in the diagonal. For example,
if A0is defined to be the main negative diagonal, it has NColumn Objects. If
ANis the corner diagonal, it contains 1 Column Object.
Figure 3 shows a mapping of a 4×4 chessboard to the Dancing Links universe
for solving the N-Queens problem.
0000
1P2 2
3333
4444
Figure 4: Recomputed Rows with 1 Pawn
11
5.1.2 N+k Queens Universe
When one Pawn is placed on the chess board, it divides the chessboard blocks for
its row, column, negative, and positive diagonal. In the Dancing Links universe,
this added Pawn splits the corresponding four Columns (R,F,A,B), resulting
in four additional and unique Columns to be covered.
To analyze N+kwe solve the exact cover problem used in the N-Queens
problem with the addition of a preprocessor to determine all valid Pawn place-
ments, iterate through the Pawn placements, and determine unique row and
column ids.
Given a valid Pawn placement, the total rows and columns of the chessboard
are recomputed. If a Pawn splits a row, k, then up to Pawn is row k, and after
the Pawn is row k+ 1. The next column row is then row k+ 2. Figure 4 shows
the row identifiers when a Pawn is placed in location (1,1).
6 Conclusions and Future Work
Computer counts of fundamental solutions to the independence separation prob-
lem have provided some results for small Nas shown in Tables 1, 2, and 3. An
improvement of the algorithm used in [5] for N+ 2 Queens resulted in the dis-
covery of additional fundamental solutions for the cases N= 9,10,and 11 that
were not included in [5].
Using C++, we implemented sequential and parallel algorithms with back-
tracking as well as the previously described parallel algorithm with Dancing
Links on the Midas cluster located in the Department of Mathematics and
Computer Science at Morehead State University. The Midas cluster consists of
a head node and eight compute nodes running OSCAR [17] under the Fedora
Core 2 Linux distribution. The compute nodes are recycled Gateway E-4200
computers with a combined 3072MB RAM, while the head node is an IBM
NetVista with 512MB RAM. The nodes communicate through a switched Gi-
gabit Ethernet private network.
The times given in Table 4 are the average elapsed seconds over five to
ten trials for each value of Nfor the N+ 1 independence separation problem.
Our current version counts the total number of solutions and at its conclusion,
compresses the solutions into a set of fundamental solutions. It is obviously
faster to derive an algorithm that computes the fundamental solutions first and
determines the total solutions later.
Currently, the N+k-Queens universe is prepended to the N-Queens universe
solver, which then uses DLX. In the future we hope to reduce runtimes even
more by utilizing DLX to add and remove Pawns from the solution set.
Acknowledgements This research was funded in part by NASA KY-EPSCoR
Grant NCC5-571 and Morehead State University Faculty Research Grant 225229.
The authors thank Drew Henderson, Mark Jarvis, and Owen Wagoner of the
MSU Office of Information Technology for invaluable assistance.
12
NSolutions Fundamental solutions
5 0 0
6 16 2
7 20 3
8 128 16
9 396 52
10 2288 286
11 11152 1403
12 65172 8214
13 437848 54756
14 3118664 389833
15 23387448 2923757
16 183463680 22932960
Table 1: N+ 1 Queens and 1 Pawn on N×Nchessboard
NSolutions Fundamental solutions
6 0 0
7 4 1
8 44 6
9 280 37
10 1304 164
11 12452 1572
12 105012 13133
Table 2: N+ 2 Queens and 2 Pawns on N×Nchessboard
NSolutions Fundamental solutions
7 0 0
8 8 1
9 44 6
10 528 66
11 5976 751
Table 3: N+ 3 Queens and 3 Pawns on N×Nchessboard
References
[1] B. Abramson and M.M Yung, Construction through decomposition: A
divide-and-conquer algorithm for the N-queens problem, Proc. IEEE
(1986), 620628.
[2] W.H. Bodlaender, http://www.chessvariants.org/problems.dir/9queens.html,
13
NSequential Parallel with backtracking Parallel with DLX
6 0.002 0.002 0.0065
7 0.014 0.005 0.0198
8 0.064 0.020 0.0366
9 0.572 0.142 0.1011
10 3.051 0.635 0.2213
11 28.555 4.521 1.4471
12 173.007 27.018 6.0479
13 1667.834 261.106 42.3711
14 1812.864 256.9734
15 17353.400 1987.509
16 14536.260
Table 4: Elapsed time in seconds of sequential versus parallel implementations
January March 2004.
[3] A.P. Burger and C.M. Mynhardt, An improved upper bound for queens
domination numbers, Discrete Math. 266 (2003), 119131.
[4] J. Carrington, F. Harary, and T. Haynes, Changing and unchanging the
domination number of a graph, J. Combin. Math. Combin. Comput. 9
(1991), 5763.
[5] R.D. Chatham, G.H. Fricke, and R.D. Skaggs, The queens separation prob-
lem, Util. Math. 69 (2006), 129141.
[6] E. Cockayne, Chessboard domination problems, Discrete Math. 86 (1990),
1320.
[7] E. Cockayne, B. Gamble, and B. Shepherd, Domination parameters for the
Bishops graph, Discrete Math. 58 (1986), 221227.
[8] C. Erbas, S. Sarkeshik, and M.M. Tanik, Different perspectives of the N-
queens problem, in Proceedings of the ACM 1992 Computer Science Con-
ference.
[9] C. Erbas, M. Tanik, and Z. Aliyazicioglu, Linear congruence equations for
the solutions of the N-Queens problem, Inform. Proc. Lett. 41(6) (1992),
301306.
[10] C. Erbas, M.M. Tanik, and V.S.S. Nair, A circulant matrix based approach
to storage schemes for parallel memory systems, IEEE (1993), 9299.
[11] C.R. Hammons, personal communication (2005).
[12] T.W. Haynes, S.T. Hedetniemi, and P.J. Slater, Fundamentals of Domina-
tion in Graphs, Marcel Dekker, New York (1998).
14
[13] S.M. Hedetniemi, S.T. Hedetniemi, and R. Reynolds, Combinatorial prob-
lems on chessboards: II, in Domination in Graphs: Advanced Topics, T.W.
Haynes, S.T. Hedetniemi, and P.J. Slater eds., Marcel Dekker, New York
(1998).
[14] H. Hitotumatu and K. Noshita, A technique for implementing backtrack
algorithms and its application, Inform. Proc. Lett. 8(4) (1979), 174175.
[15] W. Kosters, http://www.liacs.nl/home/kosters/nqueens.html (April 2002).
[16] D.E. Knuth, Dancing links, in Millennial Perspectives in Computer Sci-
ence: Proceedings of the 1999 Oxford-Microsoft Symposium in Honour of
Sir Tony Hoare, J. Davies, A.W. Roscoe, and J. Woodcock eds., Palgrave
(2000).
[17] Open Source Cluster Application Resources (OSCAR),
http://oscar.openclustergroup.org/.
[18] J.J. Watkins, Across the Board: The Mathematics of Chessboard Problems,
Princeton University Press (2004).
[19] K. Zhao, The Combinatorics of Chessboards, PhD thesis, CUNY (1998).
15
... The Queens separation number s Q (M, N ) is the minimum number of pawns that can separate some legal placement of M queens on an N ×N board [4]. The Queens independence separation number s Q (β, l, M × N ) is the minimum number of pawns that can be placed on an M × N board to result in a separated board on which a maximum of l independent queens can be placed [3]. ...
... Using this, Chatham et al.,in [4] defined the board obtained from the addition of one or more pawns to be a separated board. He further proved the separation of N + k queens by k pawns for large enough N in [3] and then introduced some domination-related parameters to separation problems with other chess pieces. ...
... Therefore, when k = 1, we add 2 columns, one for the pawn and the other for the extra queen. For the other values of k, we follow the same process as mentioned above for the case when M To prove our next theorem we use the following result from Section.4 in [3] which explains the restriction of pawns location on an N × N board. ...
Article
Full-text available
The famous eight queens problem with non-attacking queens placement on an 8 × 8 chessboard was posed in the year 1848. The Queens separation problem is the legal placement of the fewest number of pawns with the maximum number of independent queens placed on an N × N board which results in a separated board. Here a legal placement is defined as the separation of attacking queens by pawns. Using this concept, the current study extends the Queens separation problem onto the rectangular board M × N (M < N) to result in a separated board with the maximum number of independent queens. The research work here first shows that M + k queens are separated with 1 pawn and continues to prove that k pawns are required to separate M + k queens. Then it focuses on finding the symmetric solutions to the M + k Queens separation problem.
... For other k, according to [4,Theorem 11], if N > max{87 + k, 25k}, then there is a solution to the N + k queens problem. The proof also involves taking known solutions to the M queens problem for some M < N , and adding extra rows, columns, queens, and pawns in systematic ways to obtain patterns that can be verified as being N + k queens problem solutions. ...
... The above result, combined with computer searches, tells us that the N + 2 queens problem has solutions for all N ≥ 7, and that the N + 3 queens problem has solutions for all N ≥ 8 [4, p. 8]. This evidence, and the results in Table 1, leads us to believe that the bounds given by [4,Theorem 11] can be greatly decreased. In any event, the following question is open. ...
... For more information about the N queens problem, see [7], [15], and [16]. For more about the N + k queens problem and related problems, see [6], [4], and [5] (Preprints are available online at [3]). For those interested in alternating sign matrices, we suggest [1], [2], and [12]. ...
... For example, Zhao determined that three pawns were necessary and sufficient to allow six independent queens on a 5 × 5 board [3]. Chatham et al. further explored the concept of placing pawns on a chessboard as obstacles in order to obtain "separated" chessboard graphs with altered graph parameters [4][5][6][7], with an emphasis on aspects of the "n + k queens problem" of finding arrangements of n + k independent queens and k pawns on an n × n chessboard. Only a few results were found regarding independence-separation on rook's and bishop's graphs. ...
... We use the notation of [2,6]. Let π be a graph parameter defined on the rook's graph, the queen's graph, or the bishop's graph, and a a non-negative integer. ...
... The number of -1s in such a matrix is k, so the number of pawns in the corresponding chessboard arrangement is also k. So we can place n + k independent rooks and k pawns on an n × n board if and only if 0 In [6] it was shown that s B (β, 2n, n) = 1 for odd n and an open question was posed relating to the values of s B (β, 2n, n) for even n. We answer that question in Theorem 7 and determine bounds for independence-separation numbers on the bishop's graph which show s B (β, 2n − 2 + d + k, n) = k in many cases, with d ≡ n (mod 2). ...
Article
Full-text available
For a chessboard graph and a given graph parameter π, a π separation number is the minimum number of pawns for which some arrangement of those pawns on the board will produce a board where π has some desired value. We extend previous results on independence and domination separation. We also consider separation of other domination-related parameters.
... In [Cha09], given a chess piece C and a graph parameter π, the π-separation number s C (π, n, p) for C is defined as the minimum number of pawns for which some placement of those pawns on an n × n board will produce a board whose C graph has π = p. Following that pattern, we define the rooks diameter-separation number s R (diam, n, d) to be the minimum number of pawns for which some placement of those pawns on an n × n board will produce a board whose rooks graph has diameter d. ...
Article
Full-text available
We define the queens (resp., rooks) diameter-separation number to be the minimum number of pawns for which some placement of those pawns on an n × n board produces a board with a queens graph (resp., rooks graph) with a desired diameter d . We determine these numbers for some small values of d .
... The domatic number of is the maximum cardinality of a domatic partition of and it is detoned by ( ). The domatic number was introduced by Cockayne and Hedetniemi [4]. Proof: Case(i) Suppose = 3 . ...
Article
Full-text available
The independent domatic queen number of a graph Q n is the maximum number of pairwise disjoint minimum independent queen dominating sets of P n and it is denoted by i d ( Q n ) while maximum independent domatic queen number is denoted by I d ( Q n ). We discuss about in this paper the independent (maximum independent) domatic number of queen graph Q n on n × n chess board.
... Several papers in this area and their extensions were carried out, where Zhao [8] in 1998 extended it further by showing that more than n independent queens can be placed on an n × n board if enough blocking pieces, such as pawns, are placed between queens. Chatham et al. further extended the work of Zhao, and brought the concept of separated chessboard graphs with various domination parameters on an n × n board starting with independence domination in [2,3]. Chatham et al. defined the separation problem as the legal placement of minimum number of pawns with the maximum number of independent chess pieces chosen on an n × n board which results in a separated board. ...
... A lot of work has been done in various domination parameters on different chessboard graphs starting with square boards [4], and then this work has been extended to queens separation problems. Chatham et al.,in [3] found the queens separation on square chessboard, and in [2] he determined the separation problem of various other chess pieces with independence and domination parameters on square chessboards. ...
Article
The Independence Number (�) is the number of vertices in a maximum independent domi- nating set. The Independent Dominating Set D is a subset of vertices V where D is a dominating set with non-adjacent vertices. The aim of this paper is to bring the concept of separation problem on square hexagonal chessboard (i.e., a square board with hexagonal cells). The queens independence separation number, sQ(�, n + k, n) is the placement of maximum of n + k non-attacking queens on an n × n board using minimum number of pawns k. Here we are interested in finding the queens and bishops indepen- dence separation numbers on a square hexagonal board which we denote by sQH(�, �(QH) + k, n) and sBH(�, �(BH) + k, n) respectively.
... Zhao proved that we need 3 pawns to put 6 queens on a 5 × 5 board [6]. For each k > 0, we can place n + k mutually non-attacking queens on an n × n board with k pawns, if n is sufficiently large [2,Theorem 11]. Figure 2: Nine mutually non-attacking queens with one pawn on a standard chessboard. ...
Article
Full-text available
The classic n-queens problem asks for placements of just n mutually non-attacking queens on an n × n board. By adding enough pawns, we can arrange to fill roughly one-quarter of the board with mutually non-attacking queens. How many pawns do we need? We discuss that question for square boards as well as rectangular m × n boards.
Chapter
This chapter contains a survey of results that have been obtained on domination, independent domination, irredundance, and total domination in chessboard graphs, such as queens, kings, bishops, knights, and rooks graphs.
Article
Full-text available
We define a legal placement of Queens to be any placement in which any two attacking Queens can be separated by a Pawn. The Queens separation number is defined to be equal to the minimum number of Pawns which can separate some legal placement of m Queens on an order n chess board. We prove that n + 1 Queens can be separated by 1 Pawn and conjecture that n + k Queens can be separated by k Pawns for large enough n. We also provide some results on the separation number of other chess pieces.
Article
A graph may be formed from an n × n chessboard by taking the squares as the vertices and two vertices are adjacent if a chess piece situated on one square covers the other. In this paper we survey some recent results concerning domination parameters for certain graphs constructed in this way.
Article
We consider the domination number of the queens graph Qn and show that if, for some fixed k, there is a dominating set of Q4k+1 of a certain type with cardinality 2k+1, then for any n large enough, . The same construction shows that for any m⩾1 and n=2(6m−1)(2k+1)−1, , where Qnt is the toroidal n×n queens graph.
Conference Paper
The N-Queens problem is a commonly used example in computer science. There are numerous approaches proposed to solve the problem. We introduce several definitions of the problem, and review some of the algorithms. We classify the algorithms for the N-Queens problem into 3 categories. The first category comprises the algorithms generating all the solutions for a given N. The algorithms in the second category are desinged to generate only the fundamental solutions [34]. The algorithms in the last category generate only one or several solutions but not necessarily all of them.
Conference Paper
We introduce a memory storage scheme allowing conflict-free parallel access to rows, columns, square blocks, distributed blocks, and positive and negative diagonals of two dimensional arrays. Unlike the existing schemes, the proposed scheme can be used for an arbitrary number of memory modules and an arbitrary size of the arrays. We develop a systematic procedure for the memory allocation based on a placement matrix constructed using circulant matrices
Article
The domination, total domination and independent domination numbers are determined for the graph whose vertices are the squares of the n × n chessboard, with vertices adjacent if they lie on the same diagonal.