subject

Design and implement an algorithm for solving a maze. Produce ASCII output indicating path. The problem description is taken from Carrano Chapter 5 Problem 9 (Carrano Chapter 5, Problem 4 in 6th edition) which is linked to this assignment.
The maze is provided by a text file in the following format:
20 7
0 18
x
x x x
x xx x
x xx x
x x xx xx x
x xx x

The first 2 numbers are: width-of-maze, height-of-maze
The next 2 numbers are: row-exit column-exit
x represents wall
space represents movable space
Unlike the textbook version, the entrance to the Maze is not specified as part of the maze. txt file but will be provided by Creature's location
When maze is printed, you should also add
* part of the path to exit
+ visited square not part of the path to exit
When the solved maze is printed, you should get (without color)
Path:
*x
x x*x
x xx*x
x **xx*x
x x+xx*xx*x
x +xxx

Above maze has "red *" to indicate path, "green star" to indicate starting location and "+" to indicate explored areas that are not part of the final path to exit.
The ASCII representation of the maze is important for debugging, but does not have to be exactly as above. The Path string has to exactly match the solution.
You can assume that mazes will have less than 100 rows and 100 columns.
You need to submit ass3.zip with the following files in it. Put all the files below into a folder called "ass3", create a zip file of the folder and submit it. Do not submit executables or other files from IDE. See https://github. com/pisanorg/w/wiki (Links to an external site.) > "Creating a zip file" if you need to.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
You know the right answer?
Design and implement an algorithm for solving a maze. Produce ASCII output indicating path. The pro...
Questions
question
Mathematics, 07.12.2019 23:31
question
Mathematics, 07.12.2019 23:31
Questions on the website: 13722367