Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

kindly solve q2 a & b (a) Given below are the initial state and soal state of the 4-puzzle problem. Suppose that Manhattan distance is

kindly solve q2 a & b

image text in transcribed

(a) Given below are the initial state and soal state of the 4-puzzle problem. Suppose that Manhattan distance is used as its heuristic function. The Marihattan distance is defined as the summation of distances between numbered tiles at the current state and the goal state. (i) What is the heuristic value for initial state? [1 mark] (ii) Draw the search tree using greedy search algorithm. Label the expanded nodes with appropriate costs. Highlight the solution path on the search tree. [4 marks] b) Given below is a graph giving the distances between pairs of cities in kilometre (km). A table containing the straight-line distance heuristic values is also provided. Initial state is at City A. The goal is to arrive at City H. (i) Draw the search tree using A search algorithm. Avoid repeated nodes. Label the cxpanded nodes with appropriate costs. [3 marks] (ii) Based on your answer in Question 2(b)(i), state the solution path and its path cost. [2 marks] (a) Given below are the initial state and soal state of the 4-puzzle problem. Suppose that Manhattan distance is used as its heuristic function. The Marihattan distance is defined as the summation of distances between numbered tiles at the current state and the goal state. (i) What is the heuristic value for initial state? [1 mark] (ii) Draw the search tree using greedy search algorithm. Label the expanded nodes with appropriate costs. Highlight the solution path on the search tree. [4 marks] b) Given below is a graph giving the distances between pairs of cities in kilometre (km). A table containing the straight-line distance heuristic values is also provided. Initial state is at City A. The goal is to arrive at City H. (i) Draw the search tree using A search algorithm. Avoid repeated nodes. Label the cxpanded nodes with appropriate costs. [3 marks] (ii) Based on your answer in Question 2(b)(i), state the solution path and its path cost. [2 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions