Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Calculate the size of a minimal state space for the problems below as an expression that references problem variables - M, N, P, I,

image text in transcribed
1. Calculate the size of a minimal state space for the problems below as an expression that references problem variables - M, N, P, I, H. Explain your calculations. A maze has height M and width N. A Pacman can move NORTH, SOUTH, EAST, or WEST. There is initially a pellet in every position of the maze. The goal is to eat all of the pellets. Note that the questions below are independent. (0) (ii) Assume there are P Pacmen, numbered 1,...,P. Their turns cycle such that all the odd numbered pacmans move one by one and then the even numbered ones move one by one. 1.e., Pacman 1 moves, then Pacman 3 moves, and so on and then Pacman 2 moves, Pacman moves and so on. Pacman 1 moves again after all the pacmans have moved once. Any time two Pacmen enter adjacent positions, the one with the lower number dies and is removed from the maze. Suppose there is one Pacman. Whenever Pacman enters a position which he has visited previously, the maze is reset - each position gets refilled with food and the "visited status" of each position is reset as well. Suppose there is one Pacman. The walls are arranged such that they create a grid of C Corridors total, which connect at I intersections. (In the example below, C = 9 (4 horizontal corridors and 5 vertical corridors) and I = 20). In a single action, Pacman can move from one intersection into an adjacent intersection, eating all the dots along the way. Your answer should only depend on I and C. (ili) PO

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions