> ABOUT ME >RESUME >LINKS I LIKE >MAIN PAGE>GUESTBOOK>PROGRAMS
( Click on the underlined heading above to see the program code . )
The aim was to place 8 queens on an 8x8 chessboard , so that none of them attack each other .
The generalized version places N Queens on an N x N ChessBoard . There are three programs :
1) A simple recursive N queens program. 2) A programs without recursive function calls .
3) A program which uses some heuristics which I myself developed . This produces a
solution quite quickly even for a 70x70 chessboard . All the programs print the positions
of the queens for all possible solutions . You may also see the Applet I made :
This shows the 92 solutions for the 8 x 8 ChessBoard . Of course , most of the solutions
are basically obtained by rotation / reflection . There are only 12 truly unique solutions and
the others are obtained by inverting / reflecting / rotating these .
> ABOUT ME >RESUME >LINKS I LIKE >MAIN PAGE>GUESTBOOK>PROGRAMS