Implement the function in scheme racket

Assignment Help Computer Engineering
Reference no: EM133424137

Question: Consider a maze, where a robot must navigate to reach the exit. The robot can move up, down, left, or right, and does not need to turn. In racket these can be symbolic atoms. In Haskell they can be integers or a custom algebraic data type. A maze is represented by a list of lists. Each nested list represents a row. Each element of the row is a number.

• A zero (0) represents an empty space,

• A one (1) represents a wall,

• A two (2) represents the starting cell,

• A three (3) represents the exit.

You will need to implement a function that takes maze, and a list of moves and yields whether or not the robot exits the maze. This is not a simple boolean value as there must also be an error state. An error occurs whenever the starting cell is not specified. In racket you can use an atom to represent an error. In Haskell you should use the Maybe data type. You can use Nothing to represent an error, Just True to represent success, and Just False to represent failure. When a move would cause the robot to enter a space with a wall, simply ignore the move. Alternatively, you may yield an error like you would do when the starting cell is missing. Implement the function in scheme (racket).

Reference no: EM133424137

Questions Cloud

Which will be shared with relevant stakeholders : identified risks, you will need to access, analyse and filter the risk assessment data, and integrate and organise your findings in the Risk Register
Describe how figures of authority are treated and shown : you must address the following rubric criteria: Authority Figures: Describe how figures of authority are treated and shown respect in each selected country
Trying to stay one step ahead of the bad guys : Encryptions are used and passwords are changed out on a constant basis, and maybe double or triple verification steps. The keys is to always be on alert
How would assess your use of goal setting in that instance : Give an example of how you have used goal setting in the past. How would you assess your use of goal setting in that instance? What did you do well?
Implement the function in scheme racket : In Haskell they can be integers or a custom algebraic data type. A maze is represented by a list of lists. Each nested list represents a row
What are your thoughts on what she discusses : What are your thoughts on what she discusses? She talks about home and identity and why these are important, what is your home? What is your Identity
Explain the complete process that you would use to complete : Explain the complete process that you would use to complete this problem. Use correct spelling and grammar.
What is home depot federal cabinet seat which oversees : What is home depot's federal Cabinet Seat which oversees the federal regulatory agency which has direct oversight and a short summary of the regulatory focus.
Identify a working hypothesis for a diagnosis : With the information provided, identify a working hypothesis for a diagnosis and the gendered implications for recovery.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why do some people choose linux over windows

Why do some people choose Linux over Windows? Use 2 or 3 sentences to answer this two question, dont copy the answer for web!!!! just input them.

  Discuss the project tracking database

Be sure that all tasks are linked in some fashion to the start and end of the project. Use the Project Tracking Database as an example

  Write down mips program that prompts user for a string

Write down MIPS program that prompts user for a string

  In brief explain your role as an employee of an

briefly describe your role as an employee of an organization in the is field. give examples of what you need to know

  Why canot a binary search be applied on the list below

Why can't a binary search be applied on the list below?

  Compare and contrast the traditional marketing advertising

question 1. crowd sourcing has been predicted to be the future of marketing advertising product design etc. companies

  What do you feel are the most important rules for database

what guidelines should you follow when you design a database? in addition to using the course material use the library

  How many and which numbers matched your lottery numbers

Print out the users guess in the order given by the user and in numeric order. Print out the random numbers you generated in the order.

  Write a method heading that accepts the values as input

Given the following task, which would be the most appropriate method heading? Write a method heading that accepts these values as input for display purposes.

  Create and test an html document that displays a table

Create and test an HTML document that displays a table of football scores from a collegiate football conference in which team names have one of primary colors.

  Download an image from the online companion web site

Download an image from the Online Companion Web site or find out an image of your own. Add text around the image. Experiment with the float property and its values to view the way that the text wraps.

  Find the object in the response was last modified

With nonpersistent connections between browser and origin server, it is possible for the single TCP segment to carry two distinct HTTP request messages.

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