Question: Data strcuture course using c++ This is the maze ( read it first ): +---+---+---+---+---+ | | + + + +---+---+ | | | |

Data strcuture course using c++

Data strcuture course using c++ This is the maze ( read it

This is the maze ( read it first ):

+---+---+---+---+---+

| |

+ + + +---+---+

| | | |

+ +---+---+---+ +

| | |

+ + +---+---+ +

| | |

+---+---+ +---+---+

|

+---+---+---+---+---+

Find a path from s to g using the Breadth First Search;

ask the usuer to enter index of the starting point and the end point and then find the path using BDS and print it out.

ex;

+---+---+---+---+---+

S | * * * * |

+ + + +---+---+

| @ | * | * * * |

+ +---+---+---+ +

| @ | @ @ @ @ |

+ + +---+---+ +

| @ @ | @ @ @ |

+---+---+ +---+---+

| @ @ G

+---+---+---+---+---+

+---+---+---+---+---+

S | * * * * |

+ + + +---+---+

| @ | * | * * * |

+ +---+---+---+ +

| @ | @ @ @ @ |

+ + +---+---+ +

| @ @ | @ @ @ |

+---+---+ +---+---+

| @ @ G

+---+---+---+---+---+

Maze BFS 1 Maze BFS 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!