Solving N-Queen Problem using Las Vegas Algorithm with State Pruning
Susmita Sharma, Aayush Shrestha, Sitasma Thapa, Prashant Timalsina, Prakash Poudyal

TL;DR
This paper presents a hybrid Las Vegas algorithm with state pruning for the N-Queen problem, significantly improving solution speed and efficiency over traditional methods, especially for large N, by reducing search space and computational cost.
Contribution
It introduces a novel hybrid algorithm combining Las Vegas stochastic approach with iterative pruning to enhance performance in solving large N-Queen instances.
Findings
The hybrid algorithm outperforms backtracking in speed for large N.
It reduces search space through dynamic pruning during random placement.
The method offers a good balance between solution quality and computational efficiency.
Abstract
The N-Queens problem, placing all N queens in a N x N chessboard where none attack the other, is a classic problem for constraint satisfaction algorithms. While complete methods like backtracking guarantee a solution, their exponential time complexity makes them impractical for large-scale instances thus, stochastic approaches, such as Las Vegas algorithm, are preferred. While it offers faster approximate solutions, it suffers from significant performance variance due to random placement of queens on the board. This research introduces a hybrid algorithm built on top of the standard Las Vegas framework through iterative pruning, dynamically eliminating invalid placements during the random assignment phase, thus this method effectively reduces the search space. The analysis results that traditional backtracking scales poorly with increasing N. In contrast, the proposed technique…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · Artificial Intelligence in Games · Complexity and Algorithms in Graphs
