See attached document for details.
Instructions
Write a program that places 8 queens on an 8x8 board where none of the queens are in conflict with each other. You are to implement the solution by using the Hill-Climbing algorithm with random restarts.
Problem Overview & Algorithm Description
The 8-Queens problem requires that 8 queens be placed on a board with 8 rows and columns so that no queen occupies the same row, column or diagonal as another queen. To solve this problem using the Hill-Climbing with random restart algorithm, we must first generate a random starting state which places a queen in a random row of each column. From there, we first check to see if the state is a goal state (no queens are in conflict). If not, we evaluate all of the possible neighbor states by moving each column’s queen through the rows of its column and generating a heuristic value for each of those states. When all of the neighbor states have been generated, we check to see if any states were generated that have a lower heuristic value than the current state. If a better state was not found, then we have reached the local minima and must perform a random restart. If a better (lower heuristic) state was found, then that state becomes the current state and the above process is repeated on that state.
Remember: your heuristic function is a representation of how close you are to the goal state. Unlike Pathfinding heuristics, we are not evaluating how close a particular node is to the goal node, but rather how close the current state (overall configuration) is to the goal state
Program Requirements
No graphics are required for this program. Instead, use a series of 0s (empty) and 1s (queen) in a grid style to represent each state. Every state generated should be output in this manner along with the current state’s heuristic, the number of neighboring states with lower heuristics, and the action taken (restart or generate neighbor state). When a solution is reached, your program should display the number of restarts and the total number of state changes that have occurred. A sample execution using 10 queens has been provided. Your program output should match that format (except yours will be 8x8).
Hello!
I have 3+ years of experience in Java and I can deliver you solution within hours.
I`ve checked your attachment and I`m able to complete all of this, but I still have some questions about it. Can you kindly contact me via chat?
Then we can discuss everything you need.
Looking forward to hearing you!
$25 USD 0 napon belül
4,9 (13 értékelés)
3,5
3,5
4 szabadúszó adott átlagosan $69 USD összegű árajánlatot erre a munkára
Hello. Thank you for your job description. I am an experienced developer of software and websites. I work quickly and to a high standard. Please let me know if I can help with your project
Hello, I have a bachelor in computer science and 5+ years coding experience.
I've worked a lot with Java in the past, and I even coded something similar using a different approach, so I think I am qualified for this job.
Feel free to message me if you have any further questions