Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MAZE SOLVER project ( use A search * or another approach; Dijkstra must NOT be used ) Description: You are placed in a maze with
MAZE SOLVER project use A search or another approach; Dijkstra must NOT be used
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.
VERY IMPORTANT NOTE!!!!! You are allowed to use A search which combines Dijkstras algorithm with a heuristic to improve efficiency. Please, because Dijkstra is NOT allowed for this project.
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 again use A search
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
Again, please do NOT use Dijskra, but A search instead. GXX
XXXXX
XXX
XX
XXXXXXXX
XXXS
XXXXXXX
XXX
XXXXXXX
X OTHER FILES ARE REPRESENTED IN THE SCREENSHOTS
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