Windy 8-Puzzle Problem We consider a variant of the 8-puzzle problem (http://tristanpenman.com/demos/n-puzzle) under a windy condition. The initial state and the goal state are | WriteDen
12 Jul Windy 8-Puzzle Problem We consider a variant of the 8-puzzle problem (http://tristanpenman.com/demos/n-puzzle) under a windy condition. The initial state and the goal state are
Posted at 08:34h
in computer science
by
Windy 8-Puzzle Problem
We consider a variant of the 8-puzzle problem (http://tristanpenman.com/demos/n-puzzle) under
a windy condition. The initial state and the goal state are shown as follows: We assume that the wind.
Please look the instructions in the attachments.
Important:
In your report, please provide the screenshots of all outcomes, and the highlighted code segments
and the detailed explanation on how you implement the followings:
Data structure: priority queue for frontier set and hash table for explored set;
Calculation of f(n) = g(n) + h(n);
Adding leaves for expansion;
Picking the smallest f(n).
Each screenshot should include your usernames and the current time, which show that you did it by
yourselves.
In this programming assignment, we aim to implement the A* search algorithm.
1 Windy 8-Puzzle Problem We consider a variant of the 8-puzzle problem (http://tristanpenman.com/demos/n-puzzle) under a windy condition. The initial state and the goal state are shown as follows: We assume that the wind
comes from the north. The step cost regarding the agent’s moving a non-blank tile to the neighboring blank tile is defined as follows: 1 for moving southward; 2 for moving westward or eastward; 3 for moving northward. The evaluation function f(n) = g(n) + h(n), where g(n) is the path cost and h(n) is the heuristic function. g(n) is defined as the path cost until the current state n by considering the windy step cost. For h(n), we use a modified total Manhattan distance used in class by considering the windy situation. We define h(n) =ℎ(𝑛) = ℎ (𝑛) where ℎ (𝑛) is for each tile. For example, for the initial node, regarding Tile 6, the agent has to move at least 1-step northward and 1-step eastward in order to reach the goal. Therefore, we have ℎ (𝑛) = 3 *1 + 2 * 1 = 5 at the initial state. In your implementation, please use a priority queue for the frontier and a hash table for the expored set. The priority is based on the evaluation function f(n). The smaller the value, the higher the priority. When adding children to an expansion node, use such order of moving the non-blank tile to the neighboring blank tiles: first the west neighboring non-blank tile; then north one; then the east one; then the south one. To break tie in picking an expansion node, use FIFO order. In your testing output, please print out all expansion states in the sequence as shown on next page: For the printout of each state, the last 2nd row includes g(n) value at the left and h(n) value at the right, and the last row indicates the expansion order.
2 Submission In your report, please provide the screenshots of all outcomes, and the highlighted code segments and the detailed explanation on how you implement the followings:
Data structure: priority queue for frontier set and hash table for explored set; Calculation of f(n) = g(n) + h(n); Adding leaves for expansion. Picking the smallest f(n).
Output should must like the following:
Each screenshot should include your usernames and the current time. Comment your code in details.
HOW OUR WEBSITE WORKS
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of
HIGH QUALITY & PLAGIARISM FREE.
Step 1
To make an Order you only need to click ORDER NOW and we will direct you to our Order Page at WriteDen. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Deadline range from 6 hours to 30 days.
Step 2
Once done with writing your paper we will upload it to your account on our website and also forward a copy to your email.
Step 3
Upon receiving your paper, review it and if any changes are needed contact us immediately. We offer unlimited revisions at no extra cost.Is it Safe to use our services?
We never resell papers on this site. Meaning after your purchase you will get an original copy of your assignment and you have all the rights to use the paper.
Discounts
Our price ranges from $8-$14 per page. If you are short of Budget, contact our Live Support for a Discount Code. All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
Please note we do not have prewritten answers. We need some time to prepare a perfect essay for you.
The post Windy 8-Puzzle Problem We consider a variant of the 8-puzzle problem (http://tristanpenman.com/demos/n-puzzle) under a windy condition. The initial state and the goal state are | WriteDen appeared first on Professors Essays.