Given a randomly generated maze of dimensions n x n, with the entrance point always being the top left corner (0,0) and the exit point always being the bottom right corner (n,n) what is the theoretical worst-case running time of finding a path through this maze?
- The maze has a density of d (for example, if d = 0.5, then half of the maze is filled with obstacle/wall cells)
- The path finding algorithm uses a stack to keep track of the path and for back tracking when necessary
- The algorithm uses a search order of down, right, up, left