Question

In: Computer Science

1. Suppose that you want to program an AI agent to navigate out of a maze....

1. Suppose that you want to program an AI agent to navigate out of a maze. The agent starts at the maze’s center facing the north direction. The agent can turn to face the south, north, east, or west. The agent can be directed to move forward for a certain distance but will stop before hitting a wall.

a) Formulate this as a search problem defining initial state, goal test, transition function, and cost function.

b) What can you tell about the size of the state space?

c) In maze navigation, it is only necessary to turn at the intersection of two or more corri-dors. Using this observation, reformulate the search problem. What can you say about the size of the state space now?

d) What simplifications or abstractions about the real world, actions, or details did we make in our problem formulation? List three of this simplifications and briefly discuss how realistic they are. For example, we assume that the agent can move as far as it can without battery charging.

Solutions

Expert Solution

a) Formulating this as a search problem. The goal is to get out of the maze.

Initial State: At (0,0) , Facing( (0,1) ).

Successor Function( At(x), Facing(y) ):

<Turn(North),{At(x),Facing( (0,1) )}>

<Turn(East),{At(x),Facing( (1,0) )}>

<Turn(West),{At(x),Facing( (-1,0) )}>

<Turn(South),{At(x),Facing( (0,-1) )}>

<Move(k blocks), {At(x+y min(k, Dmax(x, y))), Facing(y)} > where Dmax(x, y)is the maximum distance the robot can move in direction y from point x without hitting a wall.

Goal State: At(x),x∈G, where G is the set of locations outside the maze.

b) If the maze is comprised of S blocks, then the total number of states is 4S.

c) Given that, the only place we need to turn is at the intersection of two or more corridors. Now, let us re-formulate the problem. The successor remains same for the intersections and for the straight corridors,

Successor Function( At(x), Facing(y) ):

<Move(k blocks),{At(x+y min(k, Dmax(x, y))), Facing(y)}>

The size of the state space decreases due to this observation. If there are I intersection blocks, the size of the state space now is 2S + 2I.

d) Three simplifications we made are

  • The robot can see where the walls are perfectly.
  • The robot can move only in one of four directions.
  • The robot knows with certainty how far it has moved after attempting to move a certain distance.

Related Solutions

1. Suppose an agent derives utility out of a consumption goodand out of a numeraire...
1. Suppose an agent derives utility out of a consumption good and out of a numeraire good that we call “dollar”. The agent initially owns M = 2 dollars and Q = 16 units of the consumption good. We denote this initial bundle P1 = (2, 16). You offer the agent to pay him 2 dollars for a quantity of the consumption good that you leave up to him. The agent is competitive: he supplies the quantity of consumption good...
You are required to become familiar with the workings of the Rat in a Maze program...
You are required to become familiar with the workings of the Rat in a Maze program and make certain adjustments to the program. To become familiar with the program I suggest that you run it several times, using a different maze and maybe a different food location. Also trace by hand to ensure you understand how each step works. The adjustments to be made are: 1. Allow the RAT to move in a diagonal direction, so now there are a...
1. (Public Goods Game) Suppose that there are two people, Agent 1 and Agent 2 in...
1. (Public Goods Game) Suppose that there are two people, Agent 1 and Agent 2 in a town. Assume that there is no street light in the town. To build a street light, someone should pay costs and once it is built, everyone can enjoy the benefit of street light as there is no way to force not to use it. Once the street light is build, while Agent 1 has 10 payoff, Agent 2 has 5 payoff. If only...
Suppose it’s 1974, and you’re working as a pollster. You want to figure out how many...
Suppose it’s 1974, and you’re working as a pollster. You want to figure out how many people you’d have to survey to get a 97.5% confidence interval of ±4% for the proportion of Americans who say baseball is their favorite sport. (a) Find an appropriate sample size assuming you have no previous information. (b) Now suppose that your helpful intern has found a Gallup poll from 1972 in which 19% of Americans surveyed said that baseball was their favorite sport.4...
Suppose it’s 1974, and you’re working as a pollster. You want to figure out how many...
Suppose it’s 1974, and you’re working as a pollster. You want to figure out how many people you’d have to survey to get a 97.5% confidence interval of ±4% for the proportion of Americans who say baseball is their favorite sport. (a) Find an appropriate sample size assuming you have no previous information. (b) Now suppose that your helpful intern has found a Gallup poll from 1972 in which 19% of Americans surveyed said that baseball was their favorite sport.4...
1. As an investor of a company, you want to find out your ROI provided by...
1. As an investor of a company, you want to find out your ROI provided by the company at the end of the current year.   Which of the following formulas would you use? Group of answer choices Net Income divided by the Average Asset of the company. Net Income divided by the Sales amount of the company. Net Income divided by the Equity amount of the company's ending Balance Sheet. Net Income divided by the average amount of the Total...
You want to calculate agent commissions based on their role. In cell K12, insert the IFS...
You want to calculate agent commissions based on their role. In cell K12, insert the IFS function to calculate the agent’s commission based on the agent code and the applicable rates in the range L2:L4. Use relative and mixed references correctly. Copy the function to the range K13:K39.
Suppose that Dr. Su really want to get out of academia for more $$ but driving...
Suppose that Dr. Su really want to get out of academia for more $$ but driving for Uber may not be ideal for him. He decides to start a new business and now sells sunglasses to a retailer called Ultimate Vision (UV). UV purchases each one of the pairs of sunglasses from Dr. Su for $75 and retails them for $115. Dr. Su’s sourcing cost from Alibaba is $35. At the end of the season, UV estimates the salvage value...
10. You recently joined an AI (artificial intelligence) spin-out that has been launched by PhD students...
10. You recently joined an AI (artificial intelligence) spin-out that has been launched by PhD students of the University of Oxford. The company has developed a range of proprietary algorithms that allow it to locate the source of malaria outbreaks, and predict the pace of the spread and the duration of the outbreak. The project has received public funding in the form of a research grant, but the funds may run out before the product is market ready. A new...
This is all one question Part 1 Suppose you want to buy a stock in a...
This is all one question Part 1 Suppose you want to buy a stock in a firm called “Infinity” the firm states that they expect to pay you $1 per year forever. What is a fair price for this stock if an investment in similar firms return 5% per year? (The computation is based on time value of money computations we learned in Chapter 5. Hint: Is this a perpetuity, if so how would you value it (what is the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT