Design algorithm and give pseudo code to step through maze

Assignment Help Data Structure & Algorithms
Reference no: EM131373817

Assignment: Algorithmic Design

Given a grid maze similar to the following:

2449_Grid.jpg

design an algorithm and give the pseudo code to step through the maze starting at position (1, 1) and get to position (xMax -1, yMax -1). Remember to keep it generic, so don't use the example's dimensions in favor of xMax and yMax. Show that your algorithm works by tracing its steps, using the example maze for your demonstration.

‘robot' knows x,y position and facing(North, South, East, or West)

Commands given in class:

isWallInFront (abbreviated isWall) returns T if there is a wall in the next space in the facing direction, otherwise F.

atDestination returns T if x,y == position(xMax-1, yMax -1), otherwise F.

turnLeft (abbreviated TL) changes facing 90 degrees counter-clockwise.

turnRight (abbreviated TR) changes facing 90 degrees clockwise.

moveForward (abbreviated Move or Step) changes the x,y position by 1 in the facing direction.

if (condition){} If the condition is true, do what is in the brackets, no loopback.

while (condition) {} If the condition is true, do what is in the brackets and loopback.

Reference no: EM131373817

Questions Cloud

What you plan to accomplish and why : what you plan to accomplish and why, include an overview of the situation or organization and what the situation/problem is that you intend to improve - usually 1-2 pages) Cite and support all content appropriately
Examination of descriptive statistics : Determine the research questions. What statistics will explain your situation - How was the sample collected? What was the probably sampling method and What is the level of measurement - nominal, ordinal, interval, ratio?
What would be the maximum prison sentence : What would be the maximum prison sentence and fines that any individual would face? What would be the maximum fine that the company would face? If you were facing criminal charges under the Act, what would be your best defense
Explain concept of variable air volume in a zoning system : Explain the difference between two-position and modulating damper control.
Design algorithm and give pseudo code to step through maze : Design an algorithm and give the pseudo code to step through maze starting at position (1, 1) and get to position (xMax -1, yMax -1). Remember to keep it generic, so don't use example's dimensions in favor of xMax and yMax.
Describe the business leader development to become a leader : Section 1: Business Leadership Background and Traits. Describe the business leader's development to become a leader. Describe the business leader's views on leadership
Who is more powerful in setting students or instructor : What sources of power are available to the students to effect change in the classroom?- What sources of power are available to the instructor? Who is more powerful in this setting-the students or the instructor?
Discuss the disadvantages of air bypass : Explain the reason zone control systems need a method for handling excess air.
Lower level participants in organizations to mobilize : What does it mean to say that all exercises of power are examples of exchanges? When a supervisor gives an order to a subordinate in an organizational setting, what is being exchanged?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  How your bucket should look like after you finished the step

Here is how your bucket should look like after you finished the step. Notice, you have left border, right border, and bottom border, and everything inside is empty string.

  Building a tree for conversion purposes

Creating a Tree Class, Building a Tree. Converting Morse code to English characters. Concepts tested by this program: Generic Classes, Utility Class, New concepts tested by this program, Linked Trees, Building a Tree for conversion purposes.

  Explain advantages of eager decision tree algorithm

Explain advantages and disadvantages of new algorithm compared with eager decision tree algorithm, and advantages and disadvantages of new algorithm compared with lazy kNN algorithm.

  Describe a method for over tting-avoidance

Which would be chosen as the \best" attribute by a decision tree learner using the information gain splitting criterion and describe a method for over tting-avoidance in decision tree learning.

  Write a note on priority queue by giving suitable example

Write a note on priority queue by giving suitable example. Write a C function to evaluate a postfix expression using stack. Explain the Division method, Mid square method and Folding method of hash functions.

  Process of insertion into a heap-implemented priority queue

Explain the process of insertion into a heap-implemented priority queue, and informally explain its complexity and the process of removal from a heap-implemented priority queue, and informally explain its complexity.

  Develop a comprehensive network design document

Develop network design testing procedures through services, tools, and testing scripts. Describe optimal network design for critical business applications to include effective use of bandwidth and satisfying QoS requirements.

  Design a property database using microsoft access

Database window opens, then type the word Client as the name for this file where the cursor is blinking, then click the create bottom.

  System analyst

A huge, well regarded supplier of key raw materials to your corporation's production process requires a year-end summary report of totals purchased from it.

  Define the use strings and characters

Define the use strings and characters

  Variables constants and data types

The following M.U.S.E. materials may help you with this assignment: Sequential Logic Structures and Variables, Constants, and Data Types

  Design a linear-time algorithm

Design a linear-time algorithm that verifies that the height information in an AVL tree is correctly maintained and that the balance property is in order.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd