Cody

# Problem 44378. Five-dimensional maze

Solution 1324255

Submitted on 2 Nov 2017 by Eric G.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
maze = reshape([15 15 15 15 15 15 15 15 15 31], [1 1 1 1 10]); truth = reshape([1 2 3 4 5 6 7 8 9 10], [1 1 1 1 10]); assert(isequal(solve_maze5(maze), truth));

walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11110' walls = '11111' minD = 9 previousInds = 1 mapInds = 2 dists = 8 newInds = 2 previousInds = 2 mapInds = 1 3 dists = 9 7 newInds = 3 previousInds = 3 mapInds = 2 4 dists = 8 6 newInds = 4 previousInds = 4 mapInds = 3 5 dists = 7 5 newInds = 5 previousInds = 5 mapInds = 4 6 dists = 6 4 newInds = 6 previousInds = 6 mapInds = 5 7 dists = 5 3 newInds = 7 previousInds = 7 mapInds = 6 8 dists = 4 2 newInds = 8 previousInds = 8 mapInds = 7 9 dists = 3 1 newInds = 9 previousInds = 9 mapInds = 8 10 dists = 2 0 newInds = 10 previousInds = 10

2   Pass
maze = reshape([28 28 30 28 30 30 29 30 28 29 29 30 31 29 28 29 30 30 31 29 29 28 30 29 29 29 28 30 31 29 29 30 29 31 29 29 30 30 28 31 30 29 28 30 31 30 30 29 30 29 28 31 30 29 28 30 29 29 28 31 29 28 30 31 30 29 30 31 29 29 29 29 28 30 30 31 28 30 31 29 29 31 29 28 29 28 31 30 30 29 30 30 31 31 30 30 30 30 30 31], [10 10 1 1 1]); truth = reshape([1 2 3 4 5 6 7 0 11 12 0 0 0 0 0 0 8 9 10 13 0 0 0 0 0 0 0 0 0 14 0 0 0 0 0 0 0 0 16 15 0 0 0 0 0 0 0 0 17 18 0 0 0 0 0 0 0 0 20 19 0 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 24 23 22 0 0 0 0 0 0 26 25 0 0 0 0 0 0 0 0 27 28 29 30 31], [10 10 1 1 1]); assert(isequal(solve_maze5(maze), truth));

walls = '00111' walls = '10111' walls = '10111' walls = '10111' walls = '01111' walls = '00111' walls = '10111' walls = '10111' walls = '10111' walls = '01111' walls = '00111' walls = '01111' walls = '00111' walls = '01111' walls = '10111' walls = '11111' walls = '00111' walls = '10111' walls = '11111' walls = '01111' walls = '01111' walls = '11111' walls = '01111' walls = '10111' walls = '00111' walls = '01111' walls = '01111' walls = '00111' walls = '10111' walls = '11111' walls = '00111' walls = '10111' walls = '10111' walls = '11111' walls = '01111' walls = '10111' walls = '11111' walls = '01111' walls = '00111' walls = '11111' walls = '01111' walls = '00111' walls = '10111' walls = '10111' walls = '11111' walls = '00111' walls = '01111' walls = '01111' walls = '10111' walls = '01111' walls = '01111' walls = '10111' walls = '10111' walls = '10111' walls = '01111' walls = '01111' walls = '10111' walls = '11111' walls = '00111' walls = '01111' walls = '10111' walls = '01111' walls = '00111' walls = '01111' walls = '01111' walls = '10111' walls = '01111' walls = '00111' walls = '11111' walls = '01111' walls = '01111' walls = '01111' walls = '01111' walls = '01111' walls = '10111' walls = '10111' walls = '11111' walls = '01111' walls = '01111' walls = '01111' walls = '00111' walls = '11111' walls = '11111' walls = '00111' walls = '01111' walls = '00111' walls = '10111' walls = '11111' walls = '01111' walls = '01111' walls = '10111' walls = '10111' walls = '10111' walls = '11111' walls = '10111' walls = '11111' walls = '10111' walls = '10111' walls = '10111' walls = '11111' minD = 30 previousInds = 1 mapInds = 2 11 dists = 29 31 newInds = 2 previousInds = 2 mapInds = 1 3 12 dists = 30 28 30 newInds = 3 previousInds = 3 mapInds = 2 4 dists = 29 27 newInds = 4 previousInds = 4 mapInds = 3 5 14 dists = 28 26 28 newInds = 5 previousInds = 5 mapInds = 4 6 dists = 27 25 newInds = 6 previousInds = 6 mapInds = 5 7 dists = 26 24 newInds = 7 previousInds = 7 mapInds = 6 17 dists = 25 23 newInds = 17 previousInds = 17 mapInds = 7 18 dists = 24 22 newInds = 18 previousInds = 18 mapInds = 17 19 dists = 23 21 newInds = 19 previousInds = 19 mapInds = 9 18 dists = 20 22 newInds = 9 previousInds = 9 mapInds = 8 10 19 dists = 21 19 21 newInds = 10 previousInds = 10 mapInds = 9 20 dists = 20 18 newInds = 20 previousInds = 20 mapInds = 10 30 dists = 19 17 newInds = 30 previousInds = 30 mapInds = 20 40 dists = 18 16 newInds = 40 previousInds = 40 mapInds = 30 39 dists = 17 15 newInds = 39 previousInds = 39 mapInds = 38 40 49 dists = 16 16 14 newInds = 49 previousInds = 49 mapInds = 39 50 dists = 15 13 newInds = 50 previousInds = 50 mapInds = 49 60 dists = 14 12 newInds = 60 previousInds = 60 mapInds = 50 59 dists = 13 11 newInds = 59 previousInds = 59 mapInds = 60 69 dists = 12 10 newInds = 69 previousInds = 69 mapInds = 59 79 dists = 11 9 newInds = 79 previousInds = 79 mapInds = 69 78 dists = 10 8 newInds = 78 previousInds = 78 mapInds = 77 79 dists = 7 9 newInds = 77 previousInds = 77 mapInds = 78 87 dists = 8 6 newInds = 87 previousInds = 87 mapInds = 77 86 dists = 7 5 newInds = 86 previousInds = 86 mapInds = 87 96 dists = 6 4 newInds = 96 previousInds = 96 mapInds = 86 95 97 dists = 5 5 3 newInds = 97 previousInds = 97 mapInds = 96 98 dists = 4 2 newInds = 98 previousInds = 98 mapInds = 97 99 dists = 3 1 newInds = 99 previousInds = 99 mapInds = 98 100 dists = 2 0 newInds = 100 previousInds = 100

3   Pass
maze = reshape([20 29 22 23 23 23 22 30 29 21 28 29 23 29 29 29 30 29 29 29 23 22 31 30 31 23 23 29 23 21 29 29 23 22 31 23 23 22 22 31 28 23 21 28 29 31 23 30 31 23 30 22 31 23 23 28 30 31 29 21 31 29 31 21 29 22 31 29 29 29 23 23 23 31 23 22 31 22 31 31 28 23 28 23 23 23 22 31 30 23 28 23 23 28 23 31 30 31 23 23 28 31 29 28 29 31 29 29 31 31 29 31 30 29 31 29 30 31 30 31 30 30 30 31 31], [5 5 1 5 1]); truth = reshape([1 2 0 0 0 0 3 0 0 0 13 14 0 0 0 12 15 16 0 0 11 18 17 0 0 0 0 0 0 0 0 4 0 0 0 0 5 0 0 0 9 8 25 28 29 10 19 26 27 30 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 7 24 0 0 0 20 23 0 31 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21 22 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 33], [5 5 1 5 1]); assert(isequal(solve_maze5(maze), truth));

walls = '00101' walls = '11101' walls = '01111' walls = '01101' walls = '00111' walls = '11101' walls = '10111' walls = '00111' walls = '00111' walls = '11111' walls = '00111' walls = '11101' walls = '11111' walls = '11101' walls = '10111' walls = '10111' walls = '00111' walls = '01101' walls = '00111' walls = '10111' walls = '11101' walls = '11111' walls = '11101' walls = '11111' walls = '01111' walls = '10111' walls = '11101' walls = '01101' walls = '11111' walls = '11111' walls = '01101' walls = '10111' walls = '01111' walls = '11101' walls = '10111' walls = '10111' walls = '11101' walls = '10111' walls = '01101' walls = '11111' walls = '01111' walls = '11101' walls = '11111' walls = '11101' walls = '01111' walls = '01101' walls = '11101' walls = '11101' walls = '01111' walls = '01111' walls = '01101' walls = '10111' walls = '11111' walls = '01101' walls = '10111' walls = '01111' walls = '11101' walls = '11111' walls = '00111' walls = '10111' walls = '11101' walls = '01101' walls = '11111' walls = '11111' walls = '01111' walls = '10111' walls = '10101' walls = '10111' walls = '11101' walls = '11111' walls = '11111' walls = '01111' walls = '11101' walls = '11111' walls = '01111' walls = '11101' walls = '11101' walls = '11101' walls = '11111' walls = '00111' walls = '10111' walls = '01101' walls = '10111' walls = '11101' walls = '11111' walls = '10111' walls = '01101' walls = '10101' walls = '01111' walls = '10111' walls = '10111' walls = '00111' walls = '10111' walls = '00111' walls = '01111' walls = '01111' walls = '11111' walls = '11111' walls = '11101' walls = '11111' walls = '11101' walls = '10101' walls = '11101' walls = '11111' walls = '10111' walls = '10101' walls = '11111' walls = '10101' walls = '11101' walls = '11111' walls = '10111' walls = '11111' walls = '10111' walls = '11101' walls = '11111' walls = '10111' walls = '10111' walls = '10111' walls = '11101' walls = '11111' walls = '11111' walls = '11101' walls = '11101' walls = '11101' walls = '11111' minD = 32 previousInds = 1 mapInds = 2 6 26 dists = 31 33 33 newInds = 2 previousInds = 2 mapInds = 1 7 dists = 32 30 newInds = 7 previousInds = 7 mapInds = 2 8 32 dists = 31 31 29 newInds = 32 previousInds = 32 mapInds = 7 37 dists = 30 28 newInds = 37 previousInds = 37 mapInds = 32 62 dists = 29 27 newInds = 62 previousInds = 62 mapInds = 37 67 dists = 28 26 newInds = 67 previousInds = 67 mapInds = 42 62 66 dists = 25 27 27 newInds = 42 previousInds = 42 mapInds = 41 67 dists = 24 26 newInds = 41 previousInds = 41 mapInds = 42 46 dists = 25 23 newInds = 46 previousInds = 46 mapInds = 21 41 dists = 22 24 newInds = 21 previousInds = 21 mapInds = 16 46 dists = 21 23 newInds = 16 previousInds = 16 mapInds = 11 21 dists = 20 22 newInds = 11 previousInds = 11 mapInds = 12 16 dists = 19 21 newInds = 12 previousInds = 12 mapInds = 11 17 dists = 20 18 newInds = 17 previousInds = 17 mapInds = 12 18 dists = 19 17 newInds = 18 previousInds = 18 mapInds = 17 23 dists = 18 16 newInds = 23 previousInds = 23 mapInds = 18 22 dists = 17 15 newInds = 22 previousInds = 22 mapInds = 23 47 dists = 16 14 newInds = 47 previousInds = 47 mapInds = 22 72 dists = 15 13 newInds = 72 previousInds = 72 mapInds = 47 97 dists = 14 12 newInds = 97 previousInds = 97 mapInds = 72 98 dists = 13 11 newInds = 98 previousInds = 98 mapInds = 73 97 dists = 10 12 newInds = 73 previousInds = 73 mapInds = 68 98 dists = 9 11 newInds = 68 previousInds = 68 mapInds = 43 73 dists = 8 10 newInds = 43 previousInds = 43 mapInds = 48 68 dists = 7 9 newInds = 48 previousInds = 48 mapInds = 43 49 dists = 8 6 newInds = 49 previousInds = 49 mapInds = 44 48 dists = 5 7 newInds = 44 previousInds = 44 mapInds = 45 49 dists = 4 6 newInds = 45 previousInds = 45 mapInds = 44 50 dists = 5 3 newInds = 50 previousInds = 50 mapInds = 45 75 dists = 4 2 newInds = 75 previousInds = 75 mapInds = 50 70 100 dists = 3 3 1 newInds = 100 previousInds = 100 mapInds = 75 125 dists = 2 0 newInds = 125 previousInds = 125

4   Pass
maze = reshape([18 23 19 28 27 22 23 22 31 19 25 22 29 25 21 27 25 29 27 29 30 30 31 22 31 29 23 29 29 29 29 21 29 21 31 31 30 31 31 29 29 29 21 29 29 23 23 23 30 31 23 23 29 27 19 27 27 31 22 31 30 23 28 23 27 22 29 29 19 25 19 30 31 27 23 30 22 30 28 31 29 31 21 23 23 30 29 29 21 29 22 31 31 31 31 31 30 31 30 23 27 23 22 23 29 17 19 29 23 29 25 23 19 27 29 31 22 30 31 29 18 31 19 27 31 23 31 21 28 29 31 23 31 31 29 30 29 29 31 29 23 29 30 28 31 23 30 31 31 23 19 27 29 23 27 31 30 31 27 25 19 27 30 30 31 22 31 21 26 27 31 19 31 22 23 31 30 31 22 29 28 31 28 31 31 31 29 23 21 21 23 30 23 31 31 23 23 22 30 31 29 26 31 30 29 27 26 30 29 29 30 30 30 31 27 29 26 31 25 25 30 31 27 31 31 30 30 28 31 29 30 31 30 30 31 28 29 30 31 31 31 31 30 31 29 30 31 30 30 31], [5 5 2 5 1]); truth = reshape([1 2 0 0 0 0 0 0 0 0 0 24 23 0 0 0 19 22 0 0 0 20 21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 13 0 0 0 17 14 0 0 0 3 0 0 0 0 0 0 0 0 0 25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 11 0 0 0 0 12 0 0 0 16 15 0 0 0 4 0 0 0 0 0 0 0 0 0 26 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 27 0 0 0 0 0 0 0 0 0 0 0 35 36 0 6 7 0 0 0 0 0 0 0 0 28 0 0 0 0 29 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 33 38 0 0 0 34 37 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 31 32 39 0 0 0 0 40], [5 5 2 5 1]); assert(isequal(solve_maze5(maze), truth));

walls = '01001' walls = '11101' walls = '11011' walls = '11001' walls = '10111' walls = '10111' walls = '01111' walls = '11101' walls = '11111' walls = '01111' walls = '01101' walls = '11011' walls = '10001' walls = '11111' walls = '11011' walls = '10111' walls = '10111' walls = '11111' walls = '00111' walls = '01111' walls = '10011' walls = '01111' walls = '10011' walls = '11001' walls = '01111' walls = '11111' walls = '01111' walls = '01111' walls = '11111' walls = '00111' walls = '11011' walls = '01101' walls = '11111' walls = '01101' walls = '10111' walls = '10111' walls = '01101' walls = '11101' walls = '11101' walls = '11111' walls = '01111' walls = '11001' walls = '01001' walls = '11111' walls = '01111' walls = '11101' walls = '11111' walls = '11101' walls = '11101' walls = '01111' walls = '11101' walls = '11101' walls = '11101' walls = '11011' walls = '01011' walls = '11101' walls = '01101' walls = '11111' walls = '01111' walls = '01111' walls = '11101' walls = '11011' walls = '11001' walls = '01111' walls = '01011' walls = '10101' walls = '11111' walls = '11101' walls = '11111' walls = '11111' walls = '01101' walls = '11101' walls = '11101' walls = '11011' walls = '01111' walls = '01111' walls = '10111' walls = '10111' walls = '10111' walls = '10111' walls = '10011' walls = '10111' walls = '01101' walls = '11111' walls = '01011' walls = '10111' walls = '11111' walls = '10111' walls = '01111' walls = '11111' walls = '01111' walls = '01111' walls = '11111' walls = '11001' walls = '11111' walls = '11101' walls = '01111' walls = '01111' walls = '11101' walls = '11111' walls = '11001' walls = '10111' walls = '01101' walls = '10111' walls = '11111' walls = '10111' walls = '01111' walls = '10101' walls = '11111' walls = '00111' walls = '01101' walls = '11111' walls = '10111' walls = '11111' walls = '01111' walls = '10111' walls = '10101' walls = '11111' walls = '00111' walls = '01111' walls = '10111' walls = '00111' walls = '11001' walls = '01111' walls = '01111' walls = '11111' walls = '10111' walls = '10111' walls = '11101' walls = '01111' walls = '10111' walls = '10111' walls = '01111' walls = '10101' walls = '11111' walls = '10101' walls = '11111' walls = '01111' walls = '11101' walls = '01111' walls = '11111' walls = '11111' walls = '11001' walls = '11111' walls = '11011' walls = '11101' walls = '11111' walls = '11111' walls = '01101' walls = '01111' walls = '00111' walls = '11011' walls = '11101' walls = '11101' walls = '01111' walls = '10111' walls = '00111' walls = '00111' walls = '01101' walls = '11111' walls = '11111' walls = '01101' walls = '11101' walls = '11011' walls = '10111' walls = '10101' walls = '11101' walls = '11111' walls = '11111' walls = '01111' walls = '10011' walls = '11101' walls = '11011' walls = '01111' walls = '11111' walls = '11111' walls = '10101' walls = '11111' walls = '10101' walls = '11111' walls = '11011' walls = '11001' walls = '11111' walls = '01011' walls = '10011' walls = '10111' walls = '11111' walls = '00111' walls = '11111' walls = '11111' walls = '01101' walls = '11011' walls = '11011' walls = '01101' walls = '11111' walls = '01111' walls = '01111' walls = '11111' walls = '01111' walls = '01111' walls = '11011' walls = '11001' walls = '10111' walls = '11011' walls = '10111' walls = '10111' walls = '11111' walls = '10111' walls = '10111' walls = '10111' walls = '11001' walls = '11111' walls = '10111' walls = '10011' walls = '10111' walls = '11111' walls = '11101' walls = '10111' walls = '11111' walls = '11111' walls = '10101' walls = '11011' walls = '10111' walls = '11111' walls = '11011' walls = '10111' walls = '10111' walls = '10111' walls = '10101' walls = '11111' walls = '10111' walls = '10011' walls = '10111' walls = '11011' walls = '10011' walls = '10111' walls = '11111' walls = '11111' walls = '11111' walls = '10111' walls = '11111' walls = '11101' walls = '11111' walls = '11101' walls = '11111' walls = '11111' walls = '11101' walls = '11101' walls = '11111' walls = '11111' minD = 39 previousInds = 1 mapInds = 2 26 51 dists = 38 40 40 newInds = 2 previousInds = 2 mapInds = 1 52 dists = 39 37 newInds = 52 previousInds = 52 mapInds = 2 102 dists = 38 36 newInds = 102 previousInds = 102 mapInds = 52 152 dists = 37 35 newInds = 152 previousInds = 152 mapInds = 102 177 dists = 36 34 newInds = 177 previousInds = 177 mapInds = 152 178 dists = 35 33 newInds = 178 previousInds = 178 mapInds = 128 177 dists = 32 34 newInds = 128 previousInds = 128 mapInds = 133 178 dists = 31 33 newInds = 133 previousInds = 133 mapInds = 83 128 dists = 30 32 newInds = 83 previousInds = 83 mapInds = 88 133 dists = 29 31 newInds = 88 previousInds = 88 mapInds = 83 93 dists = 30 28 newInds = 93 previousInds = 93 mapInds = 43 88 dists = 27 29 newInds = 43 previousInds = 43 mapInds = 48 93 dists = 26 28 newInds = 48 previousInds = 48 mapInds = 43 98 dists = 27 25 newInds = 98 previousInds = 98 mapInds = 48 97 dists = 26 24 newInds = 97 previousInds = 97 mapInds = 47 98 dists = 23 25 newInds = 47 previousInds = 47 mapInds = 42 97 dists = 22 24 newInds = 42 previousInds = 42 mapInds = 17 47 dists = 21 23 newInds = 17 previousInds = 17 mapInds = 22 42 dists = 20 22 newInds = 22 previousInds = 22 mapInds = 17 21 23 dists = 21 21 19 newInds = 23 previousInds = 23 mapInds = 18 22 dists = 18 20 newInds = 18 previousInds = 18 mapInds = 13 23 dists = 17 19 newInds = 13 previousInds = 13 mapInds = 12 18 dists = 16 18 newInds = 12 previousInds = 12 mapInds = 13 62 dists = 17 15 newInds = 62 previousInds = 62 mapInds = 12 61 112 dists = 16 16 14 newInds = 112 previousInds = 112 mapInds = 62 162 dists = 15 13 newInds = 162 previousInds = 162 mapInds = 112 187 dists = 14 12 newInds = 187 previousInds = 187 mapInds = 162 192 dists = 13 11 newInds = 192 previousInds = 192 mapInds = 187 193 dists = 12 10 newInds = 193 previousInds = 193 mapInds = 192 243 dists = 11 9 newInds = 243 previousInds = 243 mapInds = 193 244 dists = 10 8 newInds = 244 previousInds = 244 mapInds = 219 243 dists = 7 9 newInds = 219 previousInds = 219 mapInds = 224 244 dists = 6 8 newInds = 224 previousInds = 224 mapInds = 174 219 dists = 5 7 newInds = 174 previousInds = 174 mapInds = 175 224 dists = 4 6 newInds = 175 previousInds = 175 mapInds = 174 225 dists = 5 3 newInds = 225 previousInds = 225 mapInds = 175 220 dists = 4 2 newInds = 220 previousInds = 220 mapInds = 225 245 dists = 3 1 newInds = 245 previousInds = 245 mapInds = 220 250 dists = 2 0 newInds = 250 previousInds = 250

5   Pass
maze = reshape([21 5 22 29 19 23 31 7 30 15 21 26 23 7 19 23 22 29 11 11 14 15 30 30 23 11 7 11 25 15 13 13 15 15 27 23 31 28 29 27 13 14 31 31 15 23 14 23 30 19 30 30 31 29 25 7 14 29 23 31 25 27 30 29 23 30 29 12 31 19 7 23 31 19 11 28 30 15 26 27 15 13 25 26 23 27 23 23 28 15 19 20 23 27 15 7 31 19 23 27 28 23 22 31 15 30 23 29 30 15 15 28 31 23 21 23 30 23 29 23 22 15 15 23 23 26 15 23 7 29 23 28 31 25 15 23 27 27 31 23 29 23 14 29 25 23 7 15 23 31 27 30 15 25 21 28 23 19 31 15 31 27 23 19 23 22 30 30 27 15 30 15 27 7 23 30 27 26 31 25 23 19 30 31 23 29 29 14 31 27 23 30 23 15 23 23 23 30 31 19 7 23 23 25 27 26 27 23 13 23 21 31 23 27 15 31 15 29 26 23 15 19 31 23 15 29 23 30 31 15 31 31 7 28 31 14 23 13 23 15 29 21 31 30 31 31 31 23 30 31 26 27 25 31 21 15 21 31 28 31 15 23 21 29 29 26 31 29 27 29 30 31 27 15 15 27 23 23 13 27 25 23 23 29 19 30 27 27 31 19 31 28 27 15 29 15 23 23 23 15 15 26 31 5 15 31 30 15 29 31 26 31 30 31 29 15 13 31 17 31 27 31 27 15 15 27 31 30 30 27 11 13 23 19 29 31 27 29 14 31 28 29 27 27 15 31 31 27 30 23 30 31 15 13 15 15 15 29 31 13 13 31 15 31 29 29 29 23 23 23 15 23 30 23 7 22 27 7 19 29 25 30 30 30 31 23 29 23 30 25 11 29 7 22 31 26 31 26 30 27 29 31 27 28 27 15 15 27 27 27 28 30 27 19 31 31 14 15 27 21 30 31 31 23 31 19 28 31 27 15 21 21 23 31 29 27 31 29 23 15 22 29 29 31 25 27 23 15 7 15 29 25 13 30 29 15 27 21 27 23 30 15 29 26 23 28 29 15 22 31 27 23 3 14 31 13 15 14 30 29 29 15 23 23 29 31 14 30 31 23 22 23 15 15 29 23 15 23 15 31 15 30 28 30 29 28 27 31 11 27 31 13 30 15 11 13 28 31 15 11 15 27 14 30 15 28 27 28 15 11 30 31 15 29 13 28 30 27 31 31 30 30 30 27 31 30 31 26 31 15 15 29 28 15 27 25 31 31 13 13 31 26 31 31 29 29 27 26 31 29 27 30 31 30 31 25 28 27 30 31 31 27 27 28 31 26 31 26 31 15 26 29 30 31 27 15 31 31 14 27 29 15 15 14 15 30 31 31 29 15 30 15 30 31 15 31 29 30 30 15 15 15 15 14 31 25 30 30 18 31 15 21 23 14 31 7 30 29 15 13 14 27 27 23 31 23 27 7 26 27 31 27 23 31 29 29 15 15 15 29 30 15 19 21 15 29 31 29 29 27 15 31 23 31 23 21 29 13 22 15 31 31 27 25 11 14 29 29 22 31 28 31 31 11 27 31 14 30 30 31 7 22 31 25 13 23 25 27 23 31 25 23 25 22 31 29 28 31 27 31 31 27 30 26 15 21 23 21 29 15 15 23 31 15 23 31 13 30 30 23 28 31 21 15 13 23 31 31 22 31 19 31 7 30 23 26 31 30 29 15 30 15 22 31 15 19 28 31 30 23 23 31 26 31 7 15 7 27 14 29 29 26 30 27 31 23 26 31 23 25 30 30 14 31 31 26 31 27 30 31 23 11 31 15 21 7 23 28 31 23 26 31 31 31 27 26 30 30 31 25 30 23 31 14 31 31 31 21 26 15 30 30 31 31 7 15 23 28 31 31 15 29 27 13 15 15 30 30 31 27 29 23 29 29 15 23 23 31 30 31 30 23 30 29 31 28 31 31 15 15 15 14 15 31 15 30 23 27 7 17 30 15 19 13 31 27 7 23 30 23 31 22 27 29 27 30 23 22 31 31 22 31 23 15 15 22 29 15 19 11 31 23 19 30 29 22 23 27 23 31 19 19 22 15 31 31 11 19 31 31 31 29 30 31 31 19 29 29 14 29 29 31 31 25 29 31 31 19 31 31 27 29 31 11 19 29 31 28 30 31 31 29 23 30 15 14 29 13 23 29 7 27 31 14 31 22 30 31 31 31 31 15 7 13 15 15 29 30 31 23 7 23 15 14 15 15 31 14 15 23 21 23 31 27 27 30 23 27 28 27 27 27 15 29 27 27 29 21 30 27 27 31 31 14 27 15 11 23 27 23 31 23 27 23 15 15 31 30 15 23 31 31 15 23 27 15 27 30 30 31 25 27 30 31 23 30 29 30 27 27 15 30 27 14 31 14 23 27 13 27 7 27 31 31 23 15 27 23 19 15 29 22 30 31 25 27 23 31 25 27 21 7 23 31 23 31 15 27 15 15 21 31 15 29 15 15 29 29 15 7 15 31 29 23 29 30 31 31 23 7 14 31 30 15 15 31 30 30 30 29 25 15 11 15 15 27 29 29 29 31 30 31 31 31 15 15 14 31 11 27 28 27 27 29 29 31 27 31 31 31 29 28 30 29 15 27 30 29 31 9 14 27 27 15 31 15 15 30 31 27 11 29 13 15 29 13 30 31 25 15 31 30 30 31 29 15 30 31 11 31 13 14 31 30 31 31 15 28 30 29 26 31 27 27 15 30 31 30 15 29 15 30 11 31 27 29 14 31 29 15 31 14 29 15 31 30 31 31 31 15 28 30 30 31 15 31 15 31 30 31 7 28 30 15 13 15 30 23 15 15 15 21 21 30 31 29 23 27 7 27 23 23 23 22 15 24 30 29 19 21 21 15 31 27 23 31 30 29 28 31 22 15 31 29 29 30 23 30 23 23 31 11 27 15 23 25 28 15 29 29 31 30 23 29 29 23 11 19 31 27 19 27 19 26 27 23 23 29 7 23 23 7 30 29 9 30 11 15 23 15 25 27 30 15 15 31 27 15 27 31 14 30 29 14 31 29 13 29 29 31 23 31 15 23 7 30 31 21 23 15 23 15 30 31 15 30 27 30 15 19 22 27 30 28 31 13 31 29 30 31 29 27 30 31 13 31 30 27 23 31 27 31 21 31 31 27 15 27 14 31 22 15 11 25 19 30 31 27 30 23 19 23 30 31 15 23 29 26 31 29 15 27 30 29 15 28 27 31 31 27 23 21 14 30 29 31 23 23 23 15 29 30 31 27 31 31 31 19 26 31 15 15 28 31 23 30 29 23 29 23 30 31 26 31 23 22 29 29 29 29 28 31 29 31 15 31 22 31 30 29 14 30 31 31 31 31 23 31 14 31 11 15 11 23 29 30 31 22 31 23 29 29 19 24 27 26 31 22 31 13 26 15 14 31 31 30 29 31 23 11 13 30 31 14 31 31 7 23 31 31 14 31 11 25 27 31 15 23 31 19 27 15 7 13 19 28 15 25 15 7 30 27 27 27 15 30 31 15 23 15 14 31 27 30 31 27 19 29 29 31 21 7 31 30 23 30 31 27 27 31 30 29 31 13 15 27 15 27 31 7 31 15 7 22 29 7 29 15 15 31 23 31 29 15 13 15 30 15 23 31 31 23 31 30 23 29 11 7 30 27 11 27 27 25 15 28 23 31 15 19 15 28 31 11 13 11 30 23 30 31 27 31 27 30 31 11 7 29 29 23 29 15 31 31 29 29 22 31 23 15 15 14 11 19 23 30 23 30 27 23 31 19 22 15 29 23 21 21 15 29 30 15 15 31 29 27 30 31 30 31 23 30 29 15 15 29 31 29 21 15 30 23 15 27 11 21 27 22 30 25 31 23 7 23 31 14 23 31 15 29 15 14 23 23 15 31 23 14 31 23 7 23 7 15 31 15 15 30 15 31 13 11 27 13 13 30 31 29 31 31 14 31 15 11 27 28 30 28 31 15 31 15 31 30 27 25 29 30 29 27 15 31 14 31 15 28 30 30 31 31 27 29 27 15 31 15 30 27 31 31 31 31 26 29 29 30 31 31 31 15 31 31 27 26 31 27 25 30 27 11 30 31 15 30 15 31 31 30 30 15 30 30 15 30 27 14 31 30 31 31 31 29 14 31 15 15 31 31 27 27 13 31 28 15 15 30 31 31 31 15 14 31 13 13 31 29 15 31 15 29 30 31 14 31 31 30 27 21 30 31 30 29 27 30 31 23 29 28 15 21 21 15 30 31 29 15 22 15 11 31 25 27 11 30 25 27 27 15 13 15 11 26 31 27 7 22 31 25 26 29 22 30 31 27 15 23 31 27 27 21 29 23 27 30 27 31 27 14 31 7 28 31 15 26 31 15 7 23 30 15 28 31 29 31 25 25 23 31 13 31 27 14 31 15 31 26 15 7 31 27 19 19 23 11 7 30 15 13 15 29 30 7 30 23 15 23 14 31 21 15 15 22 30 31 31 15 31 7 30 15 30 7 29 30 27 26 27 30 29 13 31 22 29 23 31 30 31 27 19 27 22 31 26 15 15 14 30 30 23 15 23 31 26 31 25 22 31 27 11 31 29 25 30 31 27 31 15 23 22 27 30 30 15 19 31 25 29 23 7 31 29 27 23 27 27 29 29 29 28 31 15 31 31 23 31 21 13 21 29 19 31 31 29 23 21 29 31 23 15 31 27 28 31 26 15 27 31 15 26 31 21 7 14 30 31 29 20 30 31 15 31 31 13 30 29 31 29 30 31 29 30 31 23 31 15 27 11 15 22 23 14 27 15 7 15 25 30 29 29 11 23 28 31 31 27 27 31 30 30 15 23 31 22 31 31 31 23 21 30 29 31 29 30 23 31 27 30 31 22 15 15 30 31 15 19 14 31 29 31 13 22 31 31 31 31 25 27 23 25 19 31 11 30 31 27 27 27 22 31 23 26 31 27 19 27 15 30 23 15 27 30 15 29 15 31 7 27 30 31 31 27 15 30 22 27 31 31 31 15 15 14 31 30 31 15 14 29 13 30 31 15 31 31 7 29 30 15 30 23 23 22 31 27 15 27 15 21 28 31 7 15 15 15 23 13 31 13 25 23 31 23 31 22 30 23 30 27 31 11 15 15 31 30 15 25 14 31 22 31 27 26 29 23 31 27 15 31 23 11 23 22 31 21 15 19 29 14 31 23 23 23 7 15 29 15 23 29 30 31 27 14 31 15 23 23 28 30 23 29 31 29 19 27 29 15 23 25 29 31 15 29 15 27 14 31 30 30 31 31 7 30 30 30 31 7 29 31 29 13 29 23 29 31 23 23 15 29 31 31 7 23 31 7 31 15 31 15 26 31 15 13 29 13 30 31 31 29 31 31 13 29 30 30 31 31 15 27 30 27 31 11 28 31 28 15 27 29 27 29 15 13 15 27 15 13 29 25 15 30 31 31 31 15 15 15 31 25 30 15 15 29 30 31 29 31 31 29 27 27 25 25 31 28 27 31 14 31 31 27 31 28 31 15 13 29 27 15 30 31 15 31 15 30 31 15 15 13 11 27 15 30 31 14 31 15 29 28 29 29 31 31 15 31 15 15 31 14 31 31 31 28 31 31 31 29 31 15 31 14 31 30 18 22 30 31 26 23 22 30 25 22 29 26 31 31 19 31 28 30 23 26 31 31 27 23 25 29 23 22 27 31 31 23 27 31 30 30 31 27 29 23 21 22 27 27 22 30 23 30 31 27 26 29 26 31 29 25 23 30 27 29 29 29 27 23 27 23 31 23 23 30 31 26 30 31 29 23 28 31 19 27 23 29 23 23 26 23 27 30 23 28 27 30 27 27 23 23 30 27 23 22 31 31 30 31 23 31 22 29 29 29 23 29 29 29 31 31 23 31 23 30 30 31 31 23 21 31 29 28 23 29 27 31 27 27 31 25 25 22 27 29 23 30 29 23 30 23 19 31 27 29 25 23 21 27 27 31 23 31 23 21 29 23 23 23 31 31 23 30 23 27 27 31 22 23 25 29 27 26 31 31 27 30 31 23 21 22 23 26 31 23 27 22 31 23 31 30 27 26 27 27 31 30 31 23 23 31 28 31 27 19 31 21 31 29 25 27 31 21 31 30 31 31 31 31 31 30 31 22 23 29 21 30 29 31 31 31 23 29 23 31 29 29 29 23 22 31 30 31 31 27 29 30 29 21 23 29 29 31 23 28 31 29 23 23 29 23 29 19 23 23 23 30 31 23 29 22 31 27 19 29 25 29 28 31 31 29 31 31 21 21 23 30 31 31 31 26 23 31 27 23 19 30 31 31 28 31 22 27 19 31 29 29 21 25 29 31 31 31 31 30 31 27 26 31 23 30 30 23 29 18 31 25 31 31 30 31 31 23 23 29 29 22 31 21 27 30 30 31 19 22 23 23 31 31 31 29 23 29 23 30 31 31 30 21 30 30 30 31 31 31 23 30 22 31 26 30 29 27 31 31 28 31 29 31 21 31 29 27 31 29 23 30 31 23 31 23 26 23 23 27 27 19 31 31 23 26 30 31 25 23 25 19 27 31 27 31 26 23 25 23 19 31 30 31 31 31 23 29 29 21 31 23 27 31 27 31 31 21 29 27 29 29 23 31 27 27 31 30 19 29 26 29 30 23 31 25 30 31 27 29 27 19 23 31 31 29 30 31 31 23 31 22 23 31 23 31 30 30 23 28 31 29 29 31 23 23 31 29 29 23 23 28 31 31 22 31 31 30 31 30 27 30 27 27 30 29 29 26 29 29 27 30 29 31 29 27 28 31 29 31 27 30 31 31 29 30 30 31 31 31 26 30 31 29 31 31 30 31 31 28 31 27 30 29 31 31 27 27 31 28 30 31 27 27 31 30 31 29 25 25 26 30 31 27 30 27 30 31 29 30 27 30 31 31 26 30 31 31 31 28 31 27 25 31 31 31 27 31 31 31 31 31 25 27 27 27 31 31 27 31 28 28 30 31 30 31 29 31 29 29 31 31 29 29 31 29 28 31 31 31 30 31 30 31], [5 5 5 5 5]); truth = reshape([1 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 93 92 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 95 94 91 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 98 0 0 0 0 99 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 96 97 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 0 78 0 0 0 70 77 0 0 0 0 24 0 0 0 26 25 0 0 0 0 0 0 0 0 0 79 0 0 0 69 22 0 0 0 68 23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 33 34 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 116 0 0 0 0 117 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 65 0 0 0 0 54 57 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 66 67 0 43 42 55 56 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 36 0 0 41 32 35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 38 37 0 0 40 39 122 123], [5 5 5 5 5]); assert(isequal(solve_maze5(maze), truth));

walls = '10101' walls = '10011' walls = '11100' walls = '01111' walls = '01111' walls = '01011' walls = '11001' walls = '01111' walls = '01111' walls = '10101' walls = '01011' walls = '01111' walls = '11010' walls = '11011' walls = '11011' walls = '01101' walls = '10101' walls = '10111' walls = '01101' walls = '01011' walls = '11110' walls = '11111' walls = '10110' walls = '11111' walls = '01111' walls = '11010' walls = '11111' walls = '00011' walls = '10011' walls = '10011' walls = '11011' walls = '11110' walls = '11011' walls = '01110' walls = '10111' walls = '11011' walls = '01101' walls = '01111' walls = '11101' walls = '10111' walls = '10111' walls = '11110' walls = '11011' walls = '01111' walls = '11011' walls = '00111' walls = '00111' walls = '10011' walls = '11010' walls = '10111' walls = '01111' walls = '10101' walls = '11111' walls = '11101' walls = '11011' walls = '01111' walls = '11101' walls = '11101' walls = '01111' walls = '10011' walls = '11110' walls = '11111' walls = '11011' walls = '01110' walls = '11101' walls = '11001' walls = '10011' walls = '01111' walls = '01101' walls = '11111' walls = '11110' walls = '11110' walls = '11111' walls = '11111' walls = '00111' walls = '00111' walls = '11100' walls = '11101' walls = '00111' walls = '10111' walls = '11100' walls = '11111' walls = '10111' walls = '10101' walls = '11011' walls = '11011' walls = '11011' walls = '11011' walls = '01011' walls = '11101' walls = '10111' walls = '11110' walls = '11101' walls = '00111' walls = '10111' walls = '10011' walls = '10110' walls = '11111' walls = '00111' walls = '01011' walls = '00111' walls = '10101' walls = '01110' walls = '01111' walls = '01101' walls = '10111' walls = '10111' walls = '01101' walls = '10101' walls = '11111' walls = '01111' walls = '01101' walls = '11111' walls = '11111' walls = '01101' walls = '10110' walls = '10101' walls = '01110' walls = '01111' walls = '11101' walls = '10111' walls = '10111' walls = '10110' walls = '10111' walls = '11111' walls = '11101' walls = '11110' walls = '11110' walls = '01111' walls = '01011' walls = '11101' walls = '01011' walls = '01101' walls = '01011' walls = '10111' walls = '11110' walls = '01111' walls = '01111' walls = '01110' walls = '11101' walls = '10011' walls = '01111' walls = '11010' walls = '11110' walls = '11111' walls = '00111' walls = '10011' walls = '01111' walls = '10110' walls = '01111' walls = '10110' walls = '10111' walls = '10101' walls = '11011' walls = '11111' walls = '00111' walls = '10111' walls = '11011' walls = '11101' walls = '11011' walls = '10011' walls = '01101' walls = '10110' walls = '11111' walls = '10111' walls = '11110' walls = '11111' walls = '11010' walls = '11110' walls = '11101' walls = '01111' walls = '11111' walls = '11110' walls = '11011' walls = '11111' walls = '11100' walls = '11111' walls = '10011' walls = '10111' walls = '10111' walls = '11101' walls = '11100' walls = '11110' walls = '10011' walls = '11111' walls = '11111' walls = '11111' walls = '00111' walls = '01101' walls = '00111' walls = '10101' walls = '01111' walls = '11111' walls = '10111' walls = '10101' walls = '10011' walls = '11010' walls = '01111' walls = '10111' walls = '11111' walls = '11110' walls = '11101' walls = '11101' walls = '10011' walls = '11011' walls = '01011' walls = '01111' walls = '11111' walls = '11111' walls = '11101' walls = '11010' walls = '10111' walls = '10101' walls = '11110' walls = '01001' walls = '11110' walls = '10111' walls = '10111' walls = '10111' walls = '11111' walls = '11111' walls = '11111' walls = '01111' walls = '11011' walls = '00111' walls = '01111' walls = '11110' walls = '10111' walls = '01111' walls = '11101' walls = '11111' walls = '11101' walls = '00111' walls = '10111' walls = '10111' walls = '11110' walls = '11111' walls = '11100' walls = '01110' walls = '11111' walls = '10111' walls = '11110' walls = '11110' walls = '10111' walls = '00111' walls = '01111' walls = '11111' walls = '01111' walls = '11111' walls = '01111' walls = '10101' walls = '11100' walls = '11110' walls = '11101' walls = '01101' walls = '11101' walls = '01111' walls = '10110' walls = '11111' walls = '11111' walls = '11110' walls = '11011' walls = '10111' walls = '10011' walls = '00111' walls = '11101' walls = '11011' walls = '00111' walls = '11110' walls = '10101' walls = '11111' walls = '11011' walls = '01110' walls = '11111' walls = '10111' walls = '11101' walls = '01111' walls = '11111' walls = '11010' walls = '01111' walls = '11111' walls = '11101' walls = '01101' walls = '01101' walls = '10101' walls = '01111' walls = '11111' walls = '11111' walls = '11111' walls = '11111' walls = '00111' walls = '11110' walls = '10111' walls = '01110' walls = '11101' walls = '00111' walls = '10111' walls = '00111' walls = '10110' walls = '11111' walls = '10011' walls = '01110' walls = '11111' walls = '11111' walls = '10111' walls = '10111' walls = '01011' walls = '00111' walls = '10111' walls = '10101' walls = '01011' walls = '11001' walls = '01111' walls = '10011' walls = '11111' walls = '11011' walls = '11110' walls = '11101' walls = '11101' walls = '11011' walls = '11111' walls = '10110' walls = '11111' walls = '11111' walls = '10011' walls = '11011' walls = '10011' walls = '01111' walls = '11011' walls = '01011' walls = '10101' walls = '11110' walls = '11110' walls = '10111' walls = '11001' walls = '11111' walls = '11111' walls = '01111' walls = '01111' walls = '01111' walls = '01111' walls = '11011' walls = '01111' walls = '11101' walls = '10111' walls = '01011' walls = '01011' walls = '01110' walls = '11111' walls = '11111' walls = '11110' walls = '11111' walls = '11101' walls = '11101' walls = '10111' walls = '01110' walls = '01111' walls = '11111' walls = '11111' walls = '11111' walls = '10110' walls = '11110' walls = '11101' walls = '01110' walls = '01111' walls = '11111' walls = '11110' walls = '11111' walls = '11101' walls = '11101' walls = '01111' walls = '01111' walls = '01110' walls = '11111' walls = '10111' walls = '11101' walls = '01110' walls = '10111' walls = '10101' walls = '11001' walls = '10111' walls = '11001' walls = '10111' walls = '01111' walls = '10111' walls = '01011' walls = '11111' walls = '01011' walls = '11101' walls = '10111' walls = '11010' walls = '11011' walls = '11110' walls = '11111' walls = '10111' walls = '10110' walls = '01111' walls = '00111' walls = '10111' walls = '10111' walls = '10110' walls = '10111' walls = '01101' walls = '01101' walls = '11101' walls = '01101' walls = '01111' walls = '01111' walls = '10111' walls = '11111' walls = '11111' walls = '01101' walls = '01110' walls = '11011' walls = '10101' walls = '11111' walls = '11111' walls = '10111' walls = '01011' walls = '11011' walls = '01111' walls = '11011' walls = '11011' walls = '10111' walls = '00111' walls = '01111' walls = '00111' walls = '11101' walls = '00111' walls = '11011' walls = '11101' walls = '01011' walls = '11101' walls = '10111' walls = '1110...