Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please explain the answers. Your help is appreciated! Please explain the answers

ID: 3580200 • Letter: P

Question

Please explain the answers. Your help is appreciated!

Please explain the answers. Your help is appreciated!

Question 5 The function solve maze (Maze,RO,co,R,C) takes a maze, the position of a starting square RO,CO), and the position of a target square (R,C), and returns a path from the starting square to the target square. The maze is given as a matrix, where each entry is a four-bit binary integer (B3,B2,B1,B0) that indicates how the corresponding square is connected to its neighboring squares B0 is 1 if the square is connected to the left; B1 indicates if the square is connected to the right; B2 indicates if the square is connected to the above B3 indicates if the square is connected to the below. For example, in the following maze, the square at (1,1) is represented by the binary number 1010 (i.e., the decimal number 10), meaning that the square is connected to the right and the blow 1 2 3 3 L A path is a list of visited square positions. Implement the function solve maze in C++ or Java.

Explanation / Answer

#include #include #include #include "bintree.h" #include "binnode.h" using namespace std; class MazePoint { private: int x; char pointType; public: int getX() const { return x; } bool operator == (const MazePoint &other) const { return (this->x == other.x); } bool operator < (const MazePoint &other) const { return (this->x y == other.y); } bool operator < (const Row &other) const { return (this->y