N-Queens Completion: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:n-Queens Completion (n-Queens Problem)}} == Description == Given an $n \times n$ chessboard that already has $k$ queens on it, complete the board such that there are $n$ queens, all of which cannot attack each other. == Related Problems == Related: Counting Solutions, Constructing Solutions == Parameters == <pre>n: size of chessboard k: number of queens given</pre> == Table of Algorithms == {| class="wikitable sortable" style="text-alig...")
 
No edit summary
Line 10: Line 10:
== Parameters ==  
== Parameters ==  


<pre>n: size of chessboard
n: size of chessboard
k: number of queens given</pre>
 
k: number of queens given


== Table of Algorithms ==  
== Table of Algorithms ==  

Revision as of 12:03, 15 February 2023

Description

Given an $n \times n$ chessboard that already has $k$ queens on it, complete the board such that there are $n$ queens, all of which cannot attack each other.

Related Problems

Related: Counting Solutions, Constructing Solutions

Parameters

n: size of chessboard

k: number of queens given

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Grigoryan 2018 $O(n)$ $O(n)$ error < 0.0001 and decreases with increasing n Randomized Time