paper-with-me

Papers

Solving N-Queen Problem using Las Vegas Algorithm with State Pruning

2025-12-03 · Susmita Sharma, Aayush Shrestha, Sitasma Thapa, Prashant Timalsina, Prakash Poudyal arxiv

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 consistently generates valid solutions more rapidly, establishing it as a superior alternative to use where a single, timely solution is preferred over completeness. Although large N causes some performance variability, the algorithm demonstrates a highly effective trade-off between computational cost and solution fidelity, making it particularly suited for resource-constrained computing environments.

📄 PDF Abstract BibTeX arXiv:2512.04139

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

An Adaptive Genetic Algorithm for Solving N-Queens Problem

2017-11-01 · Uddalok Sarkar, Sayan Nag

In this paper a Metaheuristic approach for solving the N-Queens Problem is introduced to find the best possible solution in a reasonable amount of time. Genetic Algorithm is used with a novel fitness function as the Meta…

Linear algorithm for solution n-Queens Completion problem

2019-12-05 · E. Grigoryan

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:…

VegasFlow: accelerating Monte Carlo simulation across multiple hardware platforms

2020-02-28 · Stefano Carrazza, Juan M. Cruz-Martinez

We present VegasFlow, a new software for fast evaluation of high dimensional integrals based on Monte Carlo integration techniques designed for platforms with hardware accelerators. The growing complexity of calculations…

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

2023-06-01 · International Conference on Innovations in Data Analytics: ICIDA 2023 6 · Suklav Ghosh, Sarbajit Manna

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…

AllN-Queens Problem - All Possible Solutions

Word Embeddings, Analogies, and Machine Learning: Beyond king - man + woman = queen

2016-12-01 · COLING 2016 12 · Aleks Drozd, R, Anna Gladkova, Satoshi Matsuoka

Solving word analogies became one of the most popular benchmarks for word embeddings on the assumption that linear relations between word pairs (such as \textit{king}:\textit{man} :: \textit{woman}:\textit{queen}) are in…

BIG-bench Machine LearningMorphological AnalysisRetrievalWord Embeddings+1