In a square maze, we can have multiple steps from ‘s’ to reach ‘e’ with one place that can only be visited once. Example: The problem: ➢ Input: an integer followed by the maze. ➢ Output: total number...


In a square maze, we can have multiple steps from ‘s’ to reach ‘e’ with one place that can only be visited once. Example:



The problem:


➢ Input: an integer followed by the maze.


➢ Output: total number of unique steps. (no need to print the unique steps)


➢ Task: Design an algorithm in pseudocode/code to print the total number of unique steps using a backtracking algorithm.


Input<br>Output<br>4<br>s..<br>These are the unique steps:<br>..#<br>4<br>2<br>These are the unique steps:<br>...<br>.#.#<br>#e.#<br>

Extracted text: Input Output 4 s.. These are the unique steps: ..# 4 2 These are the unique steps: ... .#.# #e.#

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here