Question: Informed search Here is a search graph within a grid world. Each node located in a block, each edge has a number showing the actual

Informed search
Here is a search graph within a grid world. Each node located in a block, each edge has a number showing the actual travel cost between the two corresponding nodes. For example, node A located in block \[4,1\], node C located in block \[4,2\]. The actual travel cost from A to C is 8.
1: Problem representation
In this part, you have to define \(represent\) the problem, that is to tell the computer what the problem look like. For example, your representaion should be able to express the location of the nodes, and the travel cost between connected nodes. \(Also, don't forget to define the grid world, you may need it for the heuristic.\)
# Define the graph
graph ={
# Your code here.
# hint: 'A': [('B',3),('C',8),('D',5)],...
}
positions ={
# Your code here.
# hint: 'A': (4,1),...
}
Please follow carefully the instractions, Thank you!
Informed search Here is a search graph within a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!