Program to solve n-queens problem

The program implements short bit of backtracking and finds all solutions possible
1K download
Aggiornato 9 lug 2012

Visualizza la licenza

syntax : [sol nsol]=nqueen(n)
sol ---> solution matrix (nsol x n)
nsol ---> number of solutions found

both outputs are optional

Cita come

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. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0