Question: Project: Strategies for solution space searching in JAVA Create an application that visualize discovering the way in the maze by using one of two basic
Project: Strategies for solution space searching in JAVA
Create an application that visualize discovering the way in the maze by using one of two
basic search methods: DFS LIFO data structure a stack and BFS FIFO data structure the
queue The result of the algorithm the route in the maze should be presented graphically.
Application should also show the length of the discovered route. The maze is loaded from a text
file. Format of the text file is given at the end of the task.
In route discovering following rules apply:
the route cannot go through the wall thick line in Figure
one move following directions are allowed: up down, left or right.
Following directions must be checked when deciding on the choice of next step: up left, down and
finally right.
Additional functionality of the application for each realized half the grade more:
graphical possibility of creating a new maze,
presentation of the successive steps of algorithm,
implementation of two methods of searching,
comparison of two algorithms in terms of time for complete and length of discovered routes.Figure : Route discovered by BFS algorithm
The maze shown in Figure is encoded in text file with given lines:
Each row contains information about horizontal and vertical lines walls in successive
lines describe vertical lines, even lines describe horizontal lines. Each element defining
wall is separated by a space. The length of each row is identical spaces are added where
The last two rows define the coordinates row column of entrance and exit respectively
starts from
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
