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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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