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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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