Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MAZE SOLVER project Description: You are placed in a maze with a starting point S . Your need to find your way to goal G
MAZE SOLVER project
Description: You are placed in a maze with a starting point S
Your need to find your way to goal G AS QUICKLYas few cellsmoves as possible AS POSSIBLE and collect some coins on the way.
Walls are X each cell in a passage has some coins to So if you have an X no passage.
Moves are unit each.
You are ALLOWED TO MOVE DIAGONALLY
Outside maze is lava. just like a wall; you cant go there
Write a program PROVIDE SINGLEMULTIPLE FILES in Python to read text files and solve the maze.
EXAMPLE: if youre using Dijkstra, theres a different implementation because there are multiple solutions for this Please, also indicate the solution what eg algorithm you used
OTHER EXPLANATIONS!! PLEASE, ALSO READ:
In this project:
For the x maze Mazestoberead... file you can simply CHECK YOUR ANSWER that you receive by the code output through doing it in a piece of paper. That means your algorithmic approach may be correct, eg if you approach is Dijkstra.
For the other TWO mazes, it is going to take very long to do it in paper, so just MAKE SURE THE ALGORITHMIC APPROACH GIVES THE RIGHT ANSWER, SO LOGIC IS CORRECT.
Find S and the path.
ALSO VERY IMPORTANT: There may be ways to reach the goal BUT find that gets you out the QUICKEST!!!!!!!
Eg and may be valid solutions, but not ideal you skip the corners
ALSO SUBMIT:
Also, besides everything I said above, submit solutions to all mazes as text. single row separated by comma for example
In text also provide time and space complexity of your solution. Common algorithms might have different implementations and different complexities.
Solution should be sum of coins collected on the way out of maze!!!!!!!!!!
If there are multiple solutions with same number of moves, I want to see the solution with LEAST coins collected as I said earlier
EXAMPLE:
So this is the maze. You have to get up at the left corner G x maze
Diagonal moves unit each so NOT Eucleadean, so NOT sqrt
Youre trying to get out of the maze as soon as possible.
G
XXXXX
XS
XXXXXX
X
XXXXX
Solution is we skip since we move diagonallywe skip since we move diagonally The answer in this example is FOR THIS CASE.
NOW THAT YOU UNDERSTOOD THE LOGIC BY AN EXAMPLE, THE ONLY FILES THAT YOU SHOULD TAKE IN CONSIDERATION FOR THIS PROJECT ARE:
mazextxt
mazextxt
mazextxt THEYRE SHOWN IN THE SCREENSHOTS ATTACHED
So the mazextxt:
GXX
XXXXX
XXX
XX
XXXXXXXX
XXXS
XXXXXXX
XXX
XXXXXXX
X
tHE next one, mazextxt:
GXXXX
XXXXXXXXXXXXXXXXXXXXXX
XXXSXXX
XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX
XXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXX
XXXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XXX
There's also the mazex attached in the screenshot. PLEASE, I NEED YOUR HELP TO PROVIDE ME WITH CORRECT ANSWER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started