Answered step by step
Verified Expert Solution
Link Copied!

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 QUICKLY(as few cells/moves as possible) AS POSSIBLE and collect some coins on the way.
Walls are X, each cell in a passage has some coins 0 to 9. So if you have an X --> no passage.
Moves are 1 unit each.
You are ALLOWED TO MOVE DIAGONALLY
Outside maze is lava. (just like a wall; you cant go there ).
Write a program (PROVIDE SINGLE/MULTIPLE 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 11x11 maze (Mazes_to_be_read... 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 2 ways to reach the goal BUT find 1 that gets you out the QUICKEST!!!!!!!
----> E.g 8 and 6 may be valid solutions, but not ideal (you skip the corners)...
ALSO SUBMIT:
1. Also, besides everything I said above, submit solutions to all 3 mazes as text. (single row separated by comma for example 533,1984,9000)
2. 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 (7x7 maze)
Diagonal moves -->1 unit each (so NOT Eucleadean, so NOT sqrt(2)).
Youre trying to get out of the maze as soon as possible.
G503746
0XXXXX4
3XS6138
3XXXXXX
1X19736
5XXXXX8
3375042
Solution is 6+1+3+(we skip 8 since we move diagonally)+4+(we skip 6 since we move diagonally)+4+7+3+0+5==33. The answer in this example is 33!!! 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:
maze_11x11.txt
maze_31x31.txt
maze_101x101.txt
Again, please do NOT use Dijskra, but A search * instead. G95X823X101
4X1X7X2X0X8
6X237X569X2
0xxxxxxxxx0
6X858X41707
2X5XXX1XXXX
7X3X525XS68
4X7X9XXXXX6
5X4X6X33242
5X8X3X9XXXX
100X8096058 OTHER FILES ARE REPRESENTED IN THE SCREENSHOTS
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions