Warning
This page is located in archive. Go to the latest version of this course pages. Go the latest version of this page.

4. Delete relaxation heuristics

This tutorial focuses on the computation of the heuristics $h^{max}$ and $h^{add}$ based on delete relaxation. As these heuristics first compute the delete relaxation of a STRIPS task $\Pi$, we will consider here only delete-free STRIPS tasks $\Pi$, i.e., $\Pi=\Pi^+$ and $h^*=h^+$. Thus, all the actions have empty delete effects.

Exercise 1: Consider the following STRIPS task $\Pi=\langle F,A,s_0,g\rangle$ where

  • $F=\{a,b,c,d,e\}$,
  • $s_0 = \{a\}$,
  • $g = \{b,e\}$,
  • $A = \{o_1,o_2,o_3,o_4\}$ defined in the table below:
action pre add cost
$o_1$ $\emptyset$ $\{b,c\}$ $4$
$o_2$ $\{a\}$ $\{c\}$ $2$
$o_3$ $\{a,c\}$ $\{d\}$ $3$
$o_4$ $\{c,d\}$ $\{e\}$ $1$

Compute the perfect heuristic $h^*$ for the initial state, i.e., $h^*(s_0)$.

Solution

Exercise 2: For the STRIPS task from the previous exercise, compute the $h^{max}$ heuristic for the initial state $s_0$, i.e., $h^{max}(s_0)$.

Solution

Exercise 3: For the STRIPS task from Exercise 1, compute $h^{add}(s_0)$.

Solution

Exercise 4: Consider the following STRIPS task $\Pi=\langle F,A,s_0,g\rangle$ where

  • $F=\{a,b,c,d,e\}$,
  • $s_0 = \{a\}$,
  • $g = \{d,e\}$,
  • $A = \{o_1,o_2,o_3,o_4,o_5\}$ defined in the table below:
action pre add cost
$o_1$ $\emptyset$ $\{b\}$ $2$
$o_2$ $\{a\}$ $\{b,c\}$ $4$
$o_3$ $\{a,b,c\}$ $\{d,e\}$ $3$
$o_4$ $\{b,c\}$ $\{e\}$ $2$
$o_5$ $\{e\}$ $\{b,c\}$ $2$

Compute $h^*(s_0)$, $h^{max}(s_0)$, and $h^{add}(s_0)$.

Solution

courses/pui/tutorials/tutorial04.txt · Last modified: 2024/03/05 15:36 by xhorcik