Skip to content

The queens problem. Solves any number of chess queens problem using three different approaches: Combinatory: O(n^n) → slowest Permutations: O(n!) Tree optimized < O(n!) → fastest Generation is performed multi threaded, so all cores of CPU are used, for very large number of queens the ‘stop when found [n] solutions or more’ can be used, (0=all so…

rforcen/queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

queens

The queens problem. Solves any number of chess queens problem using three different approaches: Combinatory: O(n^n) → slowest Permutations: O(n!) Tree optimized < O(n!) → fastest generation is performed using multi-thread, so all cores of CPU are used, for very large number of queens the ‘stop when found [n] solutions or more’ can be used, (0=all solutions) Results can be saved to a text file or copied to clipboard (total or selection), board image can also be copied as an image. Selected results can be transformed by translation, rotation or mirroring. Window geometry, n queens, stop solutions and dock positions are stored in main settings. It has been tested for n=34, providing the first solution in about 3 minutes on an 8 core i7 CPU. Qt 5.9 project C++ source code

About

The queens problem. Solves any number of chess queens problem using three different approaches: Combinatory: O(n^n) → slowest Permutations: O(n!) Tree optimized < O(n!) → fastest Generation is performed multi threaded, so all cores of CPU are used, for very large number of queens the ‘stop when found [n] solutions or more’ can be used, (0=all so…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published