Yekimov Sergey

 Publishing House “Education and Science” , s.r.o.

rusnauka@email.cz

Praha , Czech republic

 


A particular solution of the problem of n queens.

The method of successive finding of cones of independent queens.

Key words: n independent queens , chessboard of size n x n , problem P=NP

1.     Formulation of the problem.

 

               The task of arranging n independent queens (so they do not threaten each other) on an empty chessboard of size n × n is known for a long time and has a simple solution for any chessboard size of 2m, where m is any integer greater than 1. Consider a more complicated task, there is a chessboard of size n x n. 
On this board there is a Q area with already installed queens. It is necessary to place the maximum number of independent queens on the rest of the board so that they do not threaten each other and they do not threaten the queens who are located in the area of ​​Q.
               One of the variants of solving this problem is, in practice, using the method of enumerating positions when the computer program generates combinations of positions of the queens, and then the criterion of their independence is checked. The disadvantage of this option, according to the author, is a sharp increase in the amount of computation in solving problems with a large chess board size. With the increase in the size of the chessboard, the number of possible combinations increases dramatically and the computer can not cope with the volume of computations produced and "hangs".

In this paper, we consider a different method, which the author calls the method of sequential finding of the coordinates of independent queens.

 

The basis of this method is the postulate:
 

Each subsequent queen is placed on a chessboard in such a place that, after its placement, the number of cells of the chessboard not being under attack is minimal.

2 . Solution.

 

Suppose there is a chess board N of size n × n on which there is a region Q with located queens, and there is an area M of the chessboard fields that are not under the impact of the queens located in the area Q. Let the number of fields that are in M ​​equal m. Let's make a table T of size m x m. Each cell of this table T corresponds to a strictly defined cell on the chessboard N. We fill the table as follows. If, on appearing on the chessboard N in the area M, the queen on the cell under the number i will threaten the fields j that have the numbers {n1, n2, ..., nj). In the cells (i, n1), (i, n2), ..., (i, nj), (n1, i), (n2, i), ..., (nj, i), and also (i, i) we set the digit 1. This operation is performed for all cells from the region M. We leave the remaining cells empty.

The resulting matrix has the following property.

 If we sum up the numbers in the column or row under the number i, we get the number of fields from the area M that are compromised when the queen is placed in the cell numbered  i , while the author of the field on which the queen is located also considers himself to be at his stroke.

The summation over the terms and columns gives the same result. For simplicity, we shall carry out the summation over the columns. Summing the data across all the columns, we find those columns whose sum of numbers is minimal. Suppose we have found the only such column, and it has the number k. Then we delete from row T a row under number k, column number k, all the lines that contain the digit 1 at the intersection with column k, and all the columns that contain the digit 1 at the intersection with the string k. Next, we put on the chessboard N in the cell corresponding to the number k of the queen. Then the operations are repeated. Summarize the numbers of Table T without taking into account the cells that were crossed out. We find a column with a minimal sum, suppose it has the number g. We delete from the table T a row under the number g, a column under the number g, all the columns that at the intersection with the line at the number g have the number 1 and all the lines that at the intersection with the column under the number g have the number 1. We put on the chessboard N of the queen, which corresponds to the number g. These operations are repeated until it is possible. For large boards , the number of columns that have the minimum amount can be several. Performing operations with each of these columns, we obtain a separate solution of the problem. Individual solutions may coincide.

As examples, consider a solution for a 16 x 16 board, on which there are two areas with previously installed queens, they are indicated by the red letter W,     Fig.1  .Cells under the firing of queens are indicated in yellow.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

1

2

3

4

5

6

 

 

 

 

 

7

 

 

 

 

2

8

9

10

11

12

13

14

 

 

 

 

 

 

 

 

 

3

 

15

16

17

18

19

20

 

 

 

 

 

 

 

 

 

4

 

 

21

22

23

24

25

 

 

 

 

 

 

 

 

 

5

 

 

 

26

27

28

29

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

30

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

32

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

34

35

36

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 

Fig.1  The starting position, the fields under attack and the numbering of the impact-free fields.


The cells free from impact turned out 36, numbered them and we compile the table T, in our case, it has a size of 36 x 36.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

 

1

 

 

2

1

1

1

1

1

1

1

1

1

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

1

 

1

 

3

1

1

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

1

4

1

1

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

5

1

1

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

6

1

1

1

1

1

1

1

 

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

7

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

 

 

8

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

1

 

1

 

 

9

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

1

 

1

 

10

 

1

1

1

 

 

 

1

1

1

1

1

1

1

 

1

1

 

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

1

11

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

1

1

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

12

 

 

 

1

1

1

 

1

1

1

1

1

1

1

 

 

1

1

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

13

 

 

 

 

1

1

 

1

1

1

1

1

1

1

 

 

 

1

1

1

 

1

 

1

 

 

 

1

 

 

 

 

 

 

 

 

14

 

 

 

 

 

1

 

1

1

1

1

1

1

1

 

 

 

 

1

1

 

 

1

 

1

1

 

 

1

1

 

 

 

 

 

 

15

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

1

 

 

1

 

1

 

16

1

 

1

 

1

 

 

 

1

1

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

17

 

1

 

1

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

1

 

1

1

 

 

1

 

1

 

 

 

 

 

 

 

 

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

1

1

1

1

1

1

 

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

19

 

 

 

1

 

1

 

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

20

 

 

 

 

1

 

 

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

1

1

 

1

 

1

 

 

 

 

 

 

 

21

 

 

1

 

 

1

 

1

 

1

 

1

 

 

1

1

 

 

 

 

1

1

1

1

1

1

 

 

 

1

 

 

 

 

 

1

22

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

23

 

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

25

 

 

 

1

 

 

 

 

 

 

 

 

 

1

 

 

 

 

1

1

1

1

1

1

1

 

 

1

1

1

1

 

 

 

 

 

26

 

 

 

1

 

 

 

1

 

 

1

 

 

1

1

 

1

 

 

 

1

1

1

1

 

1

1

1

1

1

1

 

 

 

 

 

27

1

 

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

 

 

1

 

1

1

 

 

1

1

1

1

 

 

 

 

 

 

 

28

 

1

1

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

 

29

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

30

 

 

 

 

 

 

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

 

 

 

1

1

 

 

1

1

 

 

 

 

 

1

31

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

1

1

1

1

 

1

32

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

1

1

1

1

 

33

 

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

34

1

 

 

 

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

35

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

36

 

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

1

 

1

1

1

1


Fig. 2 Table T.


We summarize the values ​​of the table T by rows and columns. The sums for rows and columns are shaded in yellow.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

 

1

 

 

15

2

1

1

1

1

1

1

1

1

1

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

1

 

1

 

16

3

1

1

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

1

15

4

1

1

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

15

5

1

1

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

15

6

1

1

1

1

1

1

1

 

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

15

7

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

 

 

9

8

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

1

 

1

 

 

16

9

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

1

 

1

 

15

10

 

1

1

1

 

 

 

1

1

1

1

1

1

1

 

1

1

 

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

1

16

11

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

1

1

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

16

12

 

 

 

1

1

1

 

1

1

1

1

1

1

1

 

 

1

1

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

17

13

 

 

 

 

1

1

 

1

1

1

1

1

1

1

 

 

 

1

1

1

 

1

 

1

 

 

 

1

 

 

 

 

 

 

 

 

15

14

 

 

 

 

 

1

 

1

1

1

1

1

1

1

 

 

 

 

1

1

 

 

1

 

1

1

 

 

1

1

 

 

 

 

 

 

15

15

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

1

 

 

1

 

1

 

14

16

1

 

1

 

1

 

 

 

1

1

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

15

17

 

1

 

1

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

1

 

1

1

 

 

1

 

1

 

 

 

 

 

 

 

 

16

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

1

1

1

1

1

1

 

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

15

19

 

 

 

1

 

1

 

 

 

 

 

1

1

1

1

1

1

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

15

20

 

 

 

 

1

 

 

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

1

1

 

1

 

1

 

 

 

 

 

 

 

13

21

 

 

1

 

 

1

 

1

 

1

 

1

 

 

1

1

 

 

 

 

1

1

1

1

1

1

 

 

 

1

 

 

 

 

 

1

15

22

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

15

23

 

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

16

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

15

25

 

 

 

1

 

 

 

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

 

 

1

1

1

1

 

 

 

 

 

14

26

 

 

 

1

 

 

 

1

 

 

1

 

 

1

1

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

 

 

 

 

 

 

14

27

1

 

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

1

1

1

1

 

 

 

 

 

 

 

13

28

 

1

1

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

 

15

29

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

12

30

 

 

 

 

 

 

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

 

 

 

1

1

 

 

1

1

 

 

 

 

 

1

9

31

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

1

1

1

1

 

1

9

32

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

1

1

1

1

 

8

33

 

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

10

34

1

 

 

 

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

9

35

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

8

36

 

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

1

 

1

1

1

1

10

Σ

15

16

15

15

15

15

9

16

15

16

16

17

15

15

14

15

16

15

15

13

15

15

16

15

14

14

13

15

12

9

9

8

10

9

8

10

 

Fig. 3 Summarizing the T table by rows and columns.


The minimum value of the sum equal to 8 corresponds to the columns and rows under the numbers 35 and 32. For simplicity, consider the row and column at number 35. We cross out the line number 35, column number 35, the lines that at the intersection with column number 35 have the value 1, which at the intersection with line number 35 have the value 1. The crossed out area is filled with a blue color.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

 

1

 

 

15

2

1

1

1

1

1

1

1

1

1

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

1

 

1

 

16

3

1

1

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

1

15

4

1

1

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

15

5

1

1

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

15

6

1

1

1

1

1

1

1

 

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

15

7

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

 

 

9

8

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

1

 

1

 

 

16

9

1

1

 

 

 

 

 

1

1

1

1

1

1

1

1

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

1

 

1

 

15

10

 

1

1

1

 

 

 

1

1

1

1

1

1

1

 

1

1

 

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

1

16

11

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

1

1

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

16

12

 

 

 

1

1

1

 

1

1

1

1

1

1

1

 

 

1

1

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

17

13

 

 

 

 

1

1

 

1

1

1

1

1

1

1

 

 

 

1

1

1

 

1

 

1

 

 

 

1

 

 

 

 

 

 

 

 

15

14

 

 

 

 

 

1

 

1

1

1

1

1

1

1

 

 

 

 

1

1

 

 

1

 

1

1

 

 

1

1

 

 

 

 

 

 

15

15

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

1

 

 

1

 

1

 

14

16

1

 

1

 

1

 

 

 

1

1

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

15

17

 

1

 

1

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

1

 

1

1

 

 

1

 

1

 

 

 

 

 

 

 

 

16

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

1

1

1

1

1

1

 

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

15

19

 

 

 

1

 

1

 

 

 

 

 

1

1

1

1

1

1

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

15

20

 

 

 

 

1

 

 

 

 

 

 

 

1

1

1

1

1

1

1

1

 

 

 

1

1

 

1

 

1

 

 

 

 

 

 

 

13

21

 

 

1

 

 

1

 

1

 

1

 

1

 

 

1

1

 

 

 

 

1

1

1

1

1

1

 

 

 

1

 

 

 

 

 

1

15

22

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

15

23

 

1

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

16

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

15

25

 

 

 

1

 

 

 

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

 

 

1

1

1

1

 

 

 

 

 

14

26

 

 

 

1

 

 

 

1

 

 

1

 

 

1

1

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

 

 

 

 

 

 

14

27

1

 

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

1

1

1

1

 

 

 

 

 

 

 

13

28

 

1

1

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

 

15

29

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

12

30

 

 

 

 

 

 

 

1

 

 

 

 

 

1

1

 

 

 

 

 

1

 

 

 

1

1

 

 

1

1

 

 

 

 

 

1

9

31

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

1

1

1

1

 

1

9

32

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

1

1

1

1

 

8

33

 

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

10

34

1

 

 

 

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

9

35

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

8

36

 

 

1

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

1

1

 

1

1

1

1

10

Σ

15

16

15

15

15

15

9

16

15

16

16

17

15

15

14

15

16

15

15

13

15

15

16

15

14

14

13

15

12

9

9

8

10

9

8

10

Fig.4 Finding a place to install the first queen.



Thus, we found the location of the first queen, this is cell number 35, on our board this corresponds to the field (12, 2).

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 


Fig. 5 Position after the installation of the first queen.

               Make sure that the queen located on the field (12, 2) does not come into conflict with the previously installed queens. We take the next step, summarize the remaining rows and columns after deletion. The minimum value of the sum equal to 5 corresponds to the column and the line under the number 31. Strike out the line number 31, column number 31, the lines that at the intersection with column number 31 have the value 1, and the columns that at the intersection with line number 31 have the value 1. 
             The crossed out area is red. Thus, we found the location of the second queen, this is cell number 31, on our board this field (10, 1). We establish the second queen, on this cell Fig. 7, and make sure that he does not conflict with the previously installed queens.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

1

 

1

1

1

1

1

1

 

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

 

 

 

 

 

11

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

1

 

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

13

4

1

 

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

14

5

1

 

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

14

6

1

 

1

1

1

1

1

 

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

14

7

1

 

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

8

1

 

 

 

 

 

 

1

 

1

1

1

1

1

 

 

 

 

 

 

1

 

 

 

 

1

 

 

 

1

1

 

 

 

 

 

11

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

10

 

 

1

1

 

 

 

1

 

1

1

1

1

1

 

1

1

 

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

13

11

 

 

1

1

1

 

 

1

 

1

1

1

1

1

 

 

1

1

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

15

12

 

 

 

1

1

1

 

1

 

1

1

1

1

1

 

 

1

1

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

16

13

 

 

 

 

1

1

 

1

 

1

1

1

1

1

 

 

 

1

1

1

 

1

 

1

 

 

 

1

 

 

 

 

 

 

 

 

14

14

 

 

 

 

 

1

 

1

 

1

1

1

1

1

 

 

 

 

1

1

 

 

1

 

1

1

 

 

1

1

 

 

 

 

 

 

14

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

16

1

 

1

 

1

 

 

 

 

1

 

 

 

 

 

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

 

 

12

17

 

 

 

1

 

1

 

 

 

1

1

1

 

 

 

1

1

1

1

1

 

1

1

 

 

1

 

1

 

 

 

 

 

 

 

 

14

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

 

1

1

1

1

1

 

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

14

19

 

 

 

1

 

1

 

 

 

 

 

1

1

1

 

1

1

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

14

20

 

 

 

 

1

 

 

 

 

 

 

 

1

1

 

1

1

1

1

1

 

 

 

1

1

 

1

 

1

 

 

 

 

 

 

 

12

21

 

 

1

 

 

1

 

1

 

1

 

1

 

 

 

1

 

 

 

 

1

1

1

1

1

1

 

 

 

1

 

 

 

 

 

 

13

22

1

 

 

1

 

 

 

 

 

 

1

 

1

 

 

1

1

1

 

 

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

14

23

 

 

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

15

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

15

25

 

 

 

1

 

 

 

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

 

 

1

1

1

1

 

 

 

 

 

14

26

 

 

 

1

 

 

 

1

 

 

1

 

 

1

 

 

1

 

 

 

1

1

1

 

 

1

1

1

1

1

 

 

 

 

 

 

13

27

1

 

 

 

1

 

 

 

 

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

1

1

1

1

 

 

 

 

 

 

 

12

28

 

 

1

 

 

1

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

1

 

 

 

 

 

14

29

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

1

1

1

1

1

1

 

 

 

 

 

 

11

30

 

 

 

 

 

 

 

1

 

 

 

 

 

1

 

 

 

 

 

 

1

 

 

 

1

1

 

 

1

1

 

 

 

 

 

 

7

31

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

1

 

 

 

 

 

5

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

Σ

11

0

13

14

14

14

6

11

0

13

15

16

14

14

0

12

14

14

14

12

13

14

15

15

14

13

12

14

11

7

5

0

0

0

0

0

 


Fig. 6 Finding the location for the second queen.


 

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 

Fig. 7 Position after the installation of the second queen.

 

We take the next step, summarize the remaining rows and columns after deletion. The minimum value of the sum equal to 5 corresponds to the columns and lines under the numbers 7 and 30. For simplicity, consider the row and column number 30. Strikethrough line 30, column number 30, lines that are at the intersection with column number 30 have a value of 1, and columns that are at the intersection with line number 30 have a value of 1. The crossed out area is filled with brown. Thus, we found the location of the second queen, this is cell number 30, on our board this field (8, 7). We establish the third queen, on this cell Fig. 9, we are convinced that he does not conflict with the queens established earlier.

 

 


0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

 

 

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

1

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

11

4

 

 

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

 

12

5

 

 

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

13

6

 

 

1

1

1

1

1

 

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

12

7

 

 

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

10

 

 

1

1

 

 

 

 

 

1

1

1

1

1

 

1

1

 

 

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

11

11

 

 

1

1

1

 

 

 

 

1

1

1

1

1

 

 

1

1

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

14

12

 

 

 

1

1

1

 

 

 

1

1

1

1

1

 

 

1

1

1

 

1

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

14

13

 

 

 

 

1

1

 

 

 

1

1

1

1

1

 

 

 

1

1

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

12

14

 

 

 

 

 

1

 

 

 

1

1

1

1

1

 

 

 

 

1

1

 

 

1

 

 

1

 

 

1

1

 

 

 

 

 

 

12

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

16

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

1

1

1

1

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

 

 

11

17

 

 

 

1

 

1

 

 

 

1

1

1

 

 

 

1

1

1

1

1

 

1

1

 

 

1

 

 

 

 

 

 

 

 

 

 

13

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

 

1

1

1

1

1

 

1

1

1

 

 

 

 

1

 

 

 

 

 

 

 

14

19

 

 

 

1

 

1

 

 

 

 

 

1

1

1

 

1

1

1

1

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

12

20

 

 

 

 

1

 

 

 

 

 

 

 

1

1

 

1

1

1

1

1

 

 

 

1

 

 

1

 

1

 

 

 

 

 

 

 

11

21

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

 

 

 

 

1

1

1

1

 

1

 

 

 

1

 

 

 

 

 

 

11

22

 

 

 

1

 

 

 

 

 

 

1

 

1

 

 

1

1

1

 

 

1

1

1

1

 

1

1

 

 

 

 

 

 

 

 

 

12

23

 

 

 

 

1

 

 

 

 

1

 

1

 

1

 

 

1

1

1

 

1

1

1

1

 

1

1

 

 

 

 

 

 

 

 

 

13

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

1

1

1

1

 

 

1

 

1

 

 

 

 

 

 

 

13

25

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

26

 

 

 

1

 

 

 

 

 

 

1

 

 

1

 

 

1

 

 

 

1

1

1

 

 

1

1

 

1

1

 

 

 

 

 

 

11

27

 

 

 

 

1

 

 

 

 

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

1

1

 

1

 

 

 

 

 

 

 

10

28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

29

 

 

 

 

 

 

 

 

 

 

1

 

 

1

 

 

 

1

 

1

 

 

 

1

 

1

1

 

1

1

 

 

 

 

 

 

9

30

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

1

 

 

 

 

1

 

 

1

1

 

 

 

 

 

 

5

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

Σ

0

0

11

12

13

12

5

0

0

11

14

14

12

12

0

11

13

14

12

11

11

12

13

13

0

11

10

0

9

5

0

0

0

0

0

0

 

Fig. 8 Finding the location for the third queen.


 

 

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

W

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 

Fig. 9 Position after the installation of the third queen.
 
We take the next step, summarize the remaining rows and columns after deletion. The minimum value of the sum equal to 5 corresponds to the columns and lines under the number 7. Strikethrough line number 7, column number 7, lines that are at the intersection with column number 7 have a value of 1, and columns that are at the intersection with line number 7 have a value of 1. The crossed out area is shaded in green. Thus, we found the location of the fourth queen, this is cell number 7, on our board this field (1, 12). We fix the fourth queen, on this cell Fig. 11 and make sure that it does not conflict with the previously installed queens. 9 Position after the installation of the third queen.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

 

 

1

1

1

1

1

 

 

1

1

 

 

 

 

1

 

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

10

4

 

 

1

1

1

1

1

 

 

1

1

1

 

 

 

 

1

 

1

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

5

 

 

1

1

1

1

1

 

 

 

1

1

1

 

 

1

 

1

 

1

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

13

6

 

 

1

1

1

1

1

 

 

 

 

1

1

 

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

10

7

 

 

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

10

 

 

1

1

 

 

 

 

 

1

1

1

1

 

 

1

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

9

11

 

 

1

1

1

 

 

 

 

1

1

1

1

 

 

 

1

1

 

 

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

11

12

 

 

 

1

1

1

 

 

 

1

1

1

1

 

 

 

1

1

1

 

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

12

13

 

 

 

 

1

1

 

 

 

1

1

1

1

 

 

 

 

1

1

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

11

14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

16

 

 

1

 

1

 

 

 

 

1

 

 

 

 

 

1

1

1

1

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

 

10

17

 

 

 

1

 

1

 

 

 

1

1

1

 

 

 

1

1

1

1

1

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

12

18

 

 

1

 

1

 

 

 

 

 

1

1

1

 

 

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

13

19

 

 

 

1

 

1

 

 

 

 

 

1

1

 

 

1

1

1

1

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

11

20

 

 

 

 

1

 

 

 

 

 

 

 

1

 

 

1

1

1

1

1

 

 

 

1

 

 

1

 

 

 

 

 

 

 

 

 

9

21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

22

 

 

 

1

 

 

 

 

 

 

1

 

1

 

 

1

1

1

 

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

10

23

 

 

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

10

24

 

 

1

 

 

1

 

 

 

 

1

 

1

 

 

 

 

1

1

1

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

11

25

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

26

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

27

 

 

 

 

1

 

 

 

 

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

8

28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

29

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

Σ

0

0

10

11

13

10

5

0

0

9

11

12

11

0

0

10

12

13

11

9

0

10

10

11

0

0

8

0

0

0

0

0

0

0

0

0

 

Fig. 10 Finding a place for installing the queen. 

 

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

W

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

W

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 

Fig.11 Position after installation of the fourth queen.

 

               We take the next step, summarize the remaining rows and columns after deletion. The minimum value of the sum equal to 7 corresponds to the columns and lines under the number 10, 27. For simplicity, consider the row and column at number 10. Strike line number 10, column number 10, lines that are at the intersection with column number 10 have a value of 1, and the columns that at the intersection with line number 10 have a value of 1. The crossed out area is filled with purple color. Thus, we found the location of the fifth queen, this is cell number 10, on our board this corresponds to the field (2, 3). We fix the fifth queen, on this cell Fig. 13, make sure that he does not conflict with the previously installed queens.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

10

 

 

 

 

 

 

 

 

 

1

1

1

1

 

 

1

1

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

7

11

 

 

 

 

 

 

 

 

 

1

1

1

1

 

 

 

1

1

 

 

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

8

12

 

 

 

 

 

 

 

 

 

1

1

1

1

 

 

 

1

1

1

 

 

 

1

 

 

 

1

 

 

 

 

 

 

 

 

 

9

13

 

 

 

 

 

 

 

 

 

1

1

1

1

 

 

 

 

1

1

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

9

14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

16

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

1

1

1

1

1

 

1

 

 

 

 

1

 

 

 

 

 

 

 

 

 

8

17

 

 

 

 

 

 

 

 

 

1

1

1

 

 

 

1

1

1

1

1

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

10

18

 

 

 

 

 

 

 

 

 

 

1

1

1

 

 

1

1

1

1

1

 

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

11

19

 

 

 

 

 

 

 

 

 

 

 

1

1

 

 

1

1

1

1

1

 

 

1

1

 

 

 

 

 

 

 

 

 

 

 

 

9

20

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

1

1

1

1

1

 

 

 

1

 

 

1

 

 

 

 

 

 

 

 

 

8

21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

22

 

 

 

 

 

 

 

 

 

 

1

 

1

 

 

1

1

1

 

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

9

23

 

 

 

 

 

 

 

 

 

1

 

1

 

 

 

 

1

1

1

 

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

9

24

 

 

 

 

 

 

 

 

 

 

1

 

1

 

 

 

 

1

1

1

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

9

25

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

26

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

27

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

1

 

 

 

1

 

1

1

1

 

 

1

 

 

 

 

 

 

 

 

 

7

28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

29

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

7

8

9

9

0

0

8

10

11

9

8

0

9

9

9

0

0

7

0

0

0

0

0

0

0

0

0


Fig. 12 Finding the location for the fifth queen.


 

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

W

 

 

 

 

2

 

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

W

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

 


Fig. 13 Position after the installation of the fifth queen.


      We take the next step , summarize the remaining rows and columns after deletion. The minimum value of the sum equal to 4 corresponds to the columns and lines under the numbers 18, 22, 27. For simplicity, consider the row and column at number 18. We cross out the line number 18, column number 18, the lines that at the intersection with column number 18 have the value 1, and the columns that at the intersection with line number 18 have the value 1.

The crossed out area is darkened in blue. Thus, we found the location of the sixth queen, this is cell number 18, on our board this field (3, 5). We fix the sixth queen, on this cell in Fig. 15, we are convinced that it does not conflict with the queens established earlier


0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

Σ

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

12

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

13

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

17

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

18

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

5

19

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

4

20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

 

 

 

1

 

 

1

 

 

 

 

 

 

 

 

 

5

21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

22

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

1

 

1

 

 

1

 

 

 

 

 

 

 

 

 

4

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

24

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

 

 

6

25

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

26

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

27

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

 

1

 

 

 

 

 

 

 

 

 

4

28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

29

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

Σ

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

5

4

5

0

4

0

6

0

0

4

0

0

0

0

0

0

0

0

0

Fig. 14 Finding the location for the sixth queen

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

1

 

 

 

 

 

 

 

 

 

 

 

W

 

 

 

 

2

 

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

W

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

7

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

8

 

 

 

 

 

 

W

 

 

 

 

 

 

 

 

 

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

14

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

15

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

16

 

 

 

 

 

 

 

W

W

W

W

 

 

 

 

 

Fig. 15

3.     Conclusions.


Thus, we managed to establish six additional queens. This method is applicable to chessboards at least up to the size of 214 cells and can be implemented on Microsoft Excel. The algorithm analyzes a tree of variants, each branch of which corresponds to a separate solution.

4.     Literature

 

1.    Ian P. Gent, Christopher Jefferson and Peter Nightingale (2017) "Complexity of n-Queens Completion", Volume 59, pages 815-848 doi:10.1613/jair.5512