Write a function that finds the shortest path through a maze, from start point s to target t, using Breadth First Search. The function declaration is
void BFS(int n, int * maze)
Here n is the sidelength of the maze, ∗maze is an n × n array representing the maze, with entry 0 representing a blocked point, entry 1 representing an open point, and entries 2 and 3 representing the start and target points. Your function sets all the entries for fields on the shortest path to 4.
Submit your source code by e-mail to email@example.com; include the course
and homework number in the subject line, and your name as a comment in the homework file.