A Non-Recursive Space-Efficient Blind Approach to Find All Possible Solutions to the N-Queens Problem

N-Queen’s problem is the problem of placing N number of chess queens on an NxN chessboard such that none of them attack each other. A chess queen can move horizontally, vertically, and diagonally. So, the neighbours of a queen have to be placed in such a way so that there is no clash in these three directions. Scientists accepts the fact that the branching factor increases in a nearly linear fashion. With the use of artificial intelligence search patterns like Breadth First Search (BFS), Depth First Search (DFS) and backtracking algorithms, many academics have identified the problem and found out a number of techniques to compute possible solutions to n-queen’s problem. The solutions using a blind approach, that is, uninformed searches like BFS and DFS, use recursion. Also, backtracking uses recursion for the solution of this problem. All these recursive algorithms use a system stack which is limited. So, for a small value of N, it exhausts the memory quickly though it depends on machine. This paper deals with the above problem and proposes a non-recursive DFS search-based approach to solve the problem to save system memory. In this work, Depth First Search (DFS) is used as a blind approach or uninformed search. This experimental study yields a noteworthy result in terms of time and space.

PDF
Task Dataset Model Metric Name Metric Value Global Rank Benchmark
N-Queens Problem - All Possible Solutions . Non-Recursive Blind Approach by Ghosh et al Delay (seconds) 41 for N=14 Queens # 1

Methods


No methods listed for this paper. Add relevant methods here