Traditional backtracking algorithm has been improved by rotating the chessboardmatrix and put into solving N-queens counting problem in computer cluster.
通过对n皇后问题棋盘矩阵的旋转,改进了回溯算法,并通过计算机集群并行实现了N皇后的计数问题。
2
The use of color recognition to maintain a state matrix, after each step away from the state matrix and color information can get the information of current chessboard, and restore the state matrix.