Program to solve n-queens problem
Version 1.0.0.0 (2.12 KB) by
Saket Dandawate
The program implements short bit of backtracking and finds all solutions possible
syntax : [sol nsol]=nqueen(n)
sol ---> solution matrix (nsol x n)
nsol ---> number of solutions found
both outputs are optional
Cite As
Saket Dandawate (2024). Program to solve n-queens problem (https://www.mathworks.com/matlabcentral/fileexchange/37420-program-to-solve-n-queens-problem), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on General PDEs in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |