Question

Your goal is to navigate a robot out of a maze. The robot starts in the...

Your goal is to navigate a robot out of a maze. The robot starts in the center of the maze facing north. You can turn the robot to face north, east, south, or west. You can direct the robot to move forward a certain distance, although it will stop before hitting a wall.

  1. Formulate this problem. How large is the state space?
  2. In navigating a maze, the only place we need to turn is at the intersection of two or more corridors. Reformulate this problem using this observation. How large is the state space now

for aritficial intelligence

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) 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(South), {At(x),Facing( (0,-1) )} >

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

                     <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.If the maze is comprized of S blocks, then the total number of states is 4S.

b)

The successor function remains the same for intersections,and for locations x which are straight corridors:

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

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

Thus if the maze has I intersection blocks then the size of the state space is 4I + 2(S − I).

Add a comment
Know the answer?
Add Answer to:
Your goal is to navigate a robot out of a maze. The robot starts in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The Problem A robot is asked to navigate a maze. It is placed at a certain...

    The Problem A robot is asked to navigate a maze. It is placed at a certain position (the starting position) in the maze and is asked to try to reach another position (the goal position). Positions in the maze will either be open or blocked with an obstacle. Positions are identified by (x,y) coordinates. At any given moment, the robot can only move 1 step in one of 4 directions. Valid moves are: ● Go North: (x,y) -> (x,y-1) ●...

  • Maze Solving with Stacks Problem Statement Consider a maze made up of rectangular array of squares,...

    Maze Solving with Stacks Problem Statement Consider a maze made up of rectangular array of squares, such as the following one: X X X X X X X X X X X X X           X            X X X X    X X X           X               X     X X X     X X    X    X     X     X X X         X          X             X X X     X X X X X                X X X X X X X X X X X X X Figure...

  • Having a rough time getting started with the constructors and the display function of this class,...

    Having a rough time getting started with the constructors and the display function of this class, any advice/assitance is appreciated! Task You will write a class called Grid, and test it with a couple of programs. A Grid object will be made up of a grid of positions, numbered with rows and columns. Row and column numbering start at 0, at the top left corner of the grid. A grid object also has a "mover", which can move around to...

  • 13. Bozeman Health's Competitive Dilemma By Eric Connell proximity Bozeman Health is a not-for-profit health system...

    13. Bozeman Health's Competitive Dilemma By Eric Connell proximity Bozeman Health is a not-for-profit health system that operates in southwest Montana. The main hospital in Bozeman has 86 beds, a Level 3 trauma center designation, and a medical staff of over 200. It has patient revenue of approxi- mately $350 million. Bozeman is home to Montana State University (approxi- mately 15,000 students) and is a haven for outdoor recreation because of its to mountains, rivers, and Yellowstone National Park. The...

  • In your view,is the kind of child slavery discussed in this case absolutely wrong no matter...

    In your view,is the kind of child slavery discussed in this case absolutely wrong no matter what,or is it only relatively wrong,ie.,if one happens to live in a society(like ours) that disapproves of child slavery? Explain your view and why you hold it. Forty-five percent of the chocolate we consume in the that a portion of the Ivory Coast cocos beans that goes into United States and in the rest of the world is made from co- the chocolate we...

  • Read this New York Times article linked on the assignment page and share your thoughts. Failed...

    Read this New York Times article linked on the assignment page and share your thoughts. Failed by Law and Courts, Troops Come Home to Repossessions By JESSICA SILVER-GREENBERG and MICHAEL CORKERY MARCH 16, 2015 Charles Beard, a sergeant in the Army National Guard, says he was on duty in the Iraqi city of Tikrit when men came to his California home to repossess the family car. Unless his wife handed over the keys, she would go to jail, they said....

  • Will facebook be able to have a successful business model without invading privacy? explain your answer?...

    Will facebook be able to have a successful business model without invading privacy? explain your answer? could facebook take any measures to make this possible? BUSINESS PROBLEM-SOLVING CASE Facebook Privacy: Your Life for Sale Facebook has quickly morphed from a small, niche haps most obviously. Facebook allows you to keep in networking site for mostly Ivy League college stu- touch with your friends, relatives, local restaurants, dents into a publicly traded company with a market and, in short, just about...

  • And there was a buy-sell arrangement which laid out the conditions under which either shareholder could...

    And there was a buy-sell arrangement which laid out the conditions under which either shareholder could buy out the other. Paul knew that this offer would strengthen his financial picture…but did he really want a partner?It was going to be a long night. read the case study above and answer this question what would you do if you were Paul with regards to financing, and why? ntroductloh Paul McTaggart sat at his desk. Behind him, the computer screen flickered with...

  • Write down your analysis of this case on factors like the interests involved, context and power...

    Write down your analysis of this case on factors like the interests involved, context and power PACIFIC OIL COMPANY (A)* "Look, you asked for my advice, and I gave it to you," Frank Kelsey said. "If I were you, I wouldn't make any more concessions! I really don't think you ought to agree to their last demand! But you're the one who has to live with the contract, not me!" Static on the transatlantic telephone connection obscured Jean Fontaine's reply....

  • Write down your analysis of this case on factors like 1. the negotiation process, strategy and...

    Write down your analysis of this case on factors like 1. the negotiation process, strategy and tactics PACIFIC OIL COMPANY (A)* "Look, you asked for my advice, and I gave it to you," Frank Kelsey said. "If I were you, I wouldn't make any more concessions! I really don't think you ought to agree to their last demand! But you're the one who has to live with the contract, not me!" Static on the transatlantic telephone connection obscured Jean Fontaine's...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT