Package nqueens.lab
Class ParallelNQueens
java.lang.Object
nqueens.lab.ParallelNQueens
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcountSolutions(QueenLocations queenLocations, RowSearchOrder rowSearchOrder)
-
Constructor Details
-
ParallelNQueens
public ParallelNQueens()
-
-
Method Details
-
countSolutions
public static int countSolutions(QueenLocations queenLocations, RowSearchOrder rowSearchOrder) throws InterruptedException, ExecutionException- Parameters:
queenLocations- A chess board to count the solutions.- Returns:
- The number of solutions found.
- Throws:
InterruptedException- if the computation was cancelledExecutionException- if the computation threw an exception
-