The objective of the program is to find solution to the N Queens problem.
Place N queens on N by N board without them having a conflict with one another.
The program uses the algorithm MinConflicts to find the correct solution. The goal is to find a solution of the problem with 10,000 queens under 1 second.
- There is no solution for the boards: 2x2 and 3x3.
- Build it using
make
- Run
./main
- Input the number of queens
- If the number of the queens is 20 or less, the board with the solution will be displayed.
- If the number of the queens is more than 20, only the elapsed time will be displayed.