HW1: Discrete Planning¶
Due date: 2026-03-22 23:59.
Recommended Resources:
- LaValle: Planning Algorithms, Ch 1, 2.1-2.3.2, https://lavalle.pl/planning/
Cubes¶
Consider a cube with a different color on each side. We will use the same colors as a Rubik's cube (white opposite yellow, red opposite orange, blue opposite green).
Suppose there are six actions that can be done on the cube.
U = \{Z+, Z-, Y+, Y-, X+, X-\}
\\\
Each of them represents a 90 degree rotation on the cube around one of its axes. They are illustrated in the picture below.
Cost-to-go¶
The graph below represents a discrete planning problem with the lettered nodes representing
states and the numbers on the edges indicating the cost to move between states.
states and the numbers on the edges indicating the cost to move between states.
Let
G(x,k) be a comma-delimited string denoting the cost to go to state x on a fixed k-step path from states A,B,C,D,E. Use the symbol X to denote that a fixed k-step path to the goal does not exist.For example,
G(D,1) = X,3,1,X,X. This is because there is an edge from B to D with cost 3, there is an edge from C to D with cost 1, and there is no edge from A, D, or E to E.Let
G*(x) be a comma-delimited string denoting the cost to go to state x indeterminate length path from states A,B,C,D,E. Use the symbol X to denote that a path to the goal does not exist.Note: In this exercise, you can either use the provided Python code valit_simple.py from
https://github.com/alexanderjlavalle/RPPL, or write your own in a language of your choice. This code might become useful again in QUIZ1.
https://github.com/alexanderjlavalle/RPPL, or write your own in a language of your choice. This code might become useful again in QUIZ1.
Authors¶
Hannah Erickson
Give feedback on this content
Comments about these exercises