Question: No diagonal movements allowed. If there are no straight paths, you can move diagonally with a penalty of 3 points. You cannot pass through other

No diagonal movements allowed. If there are no straight paths, you can move diagonally with a penalty of 3 points. You cannot pass through other buildings. 5 points to be added when your path passes adjacent (next) to other buildings. 3 points to be detected when your path passes adjacent(next) to road blocks. Find the optimum path which passes through minimum number of squares and maximum points is the shortest and safest path. Safety is of first concern. You cannot travel through buildings and road blocks.
Evaluations will be based on the following.
1. Explain the PEAS (Performance measure, Environment, Actuator, Sensor.) for your agent. (20% marks)
2. Use given algorithms and implement the algorithms in PYTHON (20%+20%=40% marks)
3.
Print the path, the total points for the path and the number of squares in the path. (20% marks)
4.
Include code in your implementation to calculate the space complexity and time complexity and print the same. For complexity calculations, refer to the prescribed text book for ACI. (20% marks)

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!