/*
* Abstract:
* EX7. 写一LasVegas算法求n皇后问题,求n=12~20时,最优的StepVegas的值。
*
* Author : Ace.Ma
* Date : 2012/9/18
* Version: 0.1
*/
#include<iostream>
#include<iomanip>
#include<ctime>
#include<set>
#include<cmath>
#include"Queen.h"
using namespace std;
void test()
{
for( int n=12; n<=20; ++n)
{
cout<<"皇后个数 n="<<n<<endl;
cout<<setw(10)<<"stopVegas"<<setw(10)<<"p"<<setw(10)<<"s"<<setw(10)<<"e"<<setw(10)<<"t"<<endl;
for( int stopVegas=0; stopVegas<=n; ++stopVegas)
{
long failCount = 0;
long sucessVistedNodes = 0;
long failVistedNodes = 0;
int vistedNodes =0;
for (int j=0; j<10; +