JVM Languages
queen.txt
Associated article: Optimal Queens
Tags: C/C++ JVM Languages Design
Published source code accompanying the article by Timothy Rolfe in which he examines the Optimal Queens,a classic problem in mathematics and computer science. Timothy optimizes it in C and Java. Also see QUEEN.ZIP.
The Optimal Queens
by Timothy Rolfe
Listing One
void Nqueens (int Board[], int Trial[], int Size, int Row)
{
if (Row == Size)
Process(Board, Size);
else
for (int Col = 0; Col < Size; Col++)
{
Board[Row] = Col;
if ( Valid (Board, Size, Row) )
...


