1
Key Insight: When the intersections are connected as a graph, we can combine the motion and orientation
The graph structure captures the connections between intersections, eliminating the need for orientation tracking
2
State Representation: $(intersection\_id)$
• Intersections only - orientation is eliminated because the graph structure captures the connections between intersections
• The only state that we need to track in a graph structure is the name of the node, which is the intersection
3
Initial state: $(starting\_intersection)$
4
Actions: $Go(direction)$ or $Go(Node\_name)$
• Move along a corridor in the chosen direction until reaching the next intersection
• The action implicitly includes any necessary turning
• Actions are only available for directions that have corridors
5
Transition model: Each action takes the robot from the current intersection to an adjacent intersection
6
Goal test: Check if the current intersection includes an exit
7
Path cost: Could be based on the distance between intersections
8
Do we need to track orientation? No! Here's why:
• When the robot arrives at an intersection, its orientation doesn't matter for future decisions
• The important decision is which corridor to take next, not which way the robot is currently facing
• The $Go(direction)$ action implicitly handles any turning needed to face the correct direction
• Once the robot commits to a corridor, it will naturally arrive at the next intersection properly aligned
9
State Space Size: Just the number of intersections, which is $m$
We reduce the state space from $4 \times m$ (second formulation) to only $m$.
Dramatic improvement:
• Original formulation: $4 \times n$ states (every square × orientations)
• Intersection with orientation: $4 \times m$ states
• Graph-based: $m$ states (intersections only)
Example: Maze with 15 intersections → reduces from $15 \times 4 = 60$ states to only $15$ states
10
Computational Efficiency Insight: This demonstrates that for the same problem, the problem formulation makes a big difference in terms of:
• Execution time
• Storage requirements
• Computing power needed
It is easier to search in small state spaces compared to very large state spaces.
11
Graph Transformation: This reformulation transforms the problem into a graph search where:
• Nodes: Intersections in the maze
• Edges: Corridors connecting intersections
• Search goal: Find path from start intersection to exit intersection
• Algorithms: Any graph search algorithm (BFS, DFS, Dijkstra, A*) can be applied directly