iconLogo
Published:2025/12/3 16:36:52

N-Queen問題、爆速で解く方法💖

  1. 超要約: N-Queen問題を、State Pruningで超速解決!ビジネスにも役立つよ🌟

  2. ギャル的キラキラポイント✨

    • ● N-Queen問題って、チェス盤にクイーンを配置するゲームのこと👸✨ 互いに攻撃しないように配置するのが難しいの!
    • ● Las Vegasアルゴリズム(確率的アルゴリズム)とState Pruning(状態刈り込み)を組み合わせたら、計算が爆速になったんだって💖
    • ● IT業界(AIとかスケジューリング)で、時間短縮&コスト削減に役立つ可能性大!まさに神🤩
  3. 詳細解説

続きは「らくらく論文」アプリで

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

Susmita Sharma / Aayush Shrestha / Sitasma Thapa / Prashant Timalsina / Prakash Poudyal

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.

cs / cs.AI