Linear algorithm for solution n-Queens Completion problem

12/05/2019
by   E Grigoryan, et al.
0

A linear algorithm is described for solving the n-Queens Completion problem for an arbitrary composition of k queens, consistently distributed on a chessboard of size n x n. Two important rules are used in the algorithm: a) the rule of sequential risk elimination for the entire system as a whole; b) the rule of formation of minimal damage in the given selection conditions. For any composition of k queens (1<= k<n), a solution is provided, or a decision is made that this composition can't be completed. The probability of an error in making such a decision does not exceed 0.0001, and its value decreases, with increasing n. It is established that the average time, required for the queen to be placed on one row, decreases with increasing value of n. A description is given of two random selection models and the results of their comparative analysis. A model for organizing the Back Tracking procedure is proposed based on the separation of the solution matrix into two basic levels. Regression formulas are given for the dependence of basic levels on the value of n. It was found that for n=(7-100000) the number of solutions in which the Back Tracking procedure has never been used exceeds 35 number of such cases exceeds 50 correctness of n-Queens problem solution or arbitrary composition of k queens is given.

READ FULL TEXT
research
12/05/2019

Linear algorithm for solutions n-Queens Completion problem

A linear algorithm is described for solving the n-Queens Completion prob...
research
10/25/2018

Generalised framework for multi-criteria method selection

Multi-Criteria Decision Analysis (MCDA) methods are widely used in vario...
research
04/19/2019

Compositionality of Rewriting Rules with Conditions

We extend the notion of compositional associative rewriting as recently ...
research
02/06/2020

The Sum Composition Problem

In this paper, we study the "sum composition problem" between two lists ...
research
12/23/2021

Forward Composition Propagation for Explainable Neural Reasoning

This paper proposes an algorithm called Forward Composition Propagation ...

Please sign up or login with your details

Forgot password? Click here to reset