C++ programing N-Queens Problem,backtracking algorithm,local search algorithm. please finish '[login to view URL]' and 'nqueen_minconflict.cpp.' which are modified from nqueen_template.cpp. It is N-Queen problem, which is related with Artificial Intelligence, backtracking algorithm, local search.
Other details.
it have to be completed [login to view URL](BACKTRACKING SEARCH), [login to view URL](LOCAL SEARCH)(those are from [login to view URL], how 'n' is done in 2minutes in each method code.
Below are references.
[login to view URL]
I am Software Engineer at [login to view URL],
I have won a lot speed programming Competitions and my specialty is Data structures and Algorithm.
here are the algorithms i will be coding in C++ for you. And If you want I can teach you how it is actually working.. though you will have a little bit concept from below algorithms I will be using.
For NQueen Simple
while there are untried conflagrations
{
generate the next configuration
if queens don't attack in this configuration then
{
print this configuration;
}
}
BackTracking Algorithm:
1) Start in the leftmost column
2) If all queens are placed
return true
3) Try all rows in the current column. Do following for every tried row.
a) If the queen can be placed safely in this row then mark this [row,
column] as part of the solution and recursively check if placing
queen here leads to a solution.
b) If placing queen in [row, column] leads to a solution then return
true.
c) If placing queen doesn't lead to a solution then umark this [row,
column] (Backtrack) and go to step (a) to try other rows.
3) If all rows have been tried and nothing worked, return false to trigger
backtracking.
I am currently writing algorithm for Local Search. But I assure you to complete it on time.
$30 SGD en 1 día
0,0 (0 comentarios)
0,0
0,0
7 freelancers están ofertando un promedio de $38 SGD por este trabajo
Hello, I am experienced and specialized in C/C++ and Java programming, I have experience in Android. I have taken part in many competitions, including national competition, in which I won 2nd prize. I am currently a Computer Science student at Vietnam National University. I always work with responsibility and quality. Please contact me for details and time required, I will finish the job within time required. Thank you!