Exercise 1: Find an LTS $\Theta=\langle S,A,T,G\rangle$ and a heuristic $h\colon S\to\mathbb{R}_0^+\cup\{\infty\}$ which is admissible but not consistent. Make the LTS $\Theta$ so that GBFS fails to find an optimal $s_0$-plan for an initial state $s_0$.

Solution

Exercise 2: Let $\Theta$ be your above LTS and $h$ the admissible non-consistent heuristic. Choose an initial state and consider the algorithms GBFS and A$^*$. Show how the data structures that keep the state of their computation change in every iteration.

Solution

Exercise 3: Consider A* with zero heuristic and unit traversal costs, and breadth-first-search. What, if any, is the difference between the two?

Solution

Exercise 4: We have two admissible heuristics, $h_a$ and $h_b$, such that $\forall x \in S: h_a(x) \geq h_b(x)$, in other words, $h_a$ returns same or more accurate estimate of the actual costs. Does this mean that $h_b$ is worse in terms of how long it takes A* to find a solution using that heuristic? Can you proove that? If not, can you provide a counter-example?

Exercise 5: Consider two admissible and consisten heuristics $h_a$ and $h_b$.

  1. is the heuristic $h_m = max(h_a, h_b)$ admissible/consistent?
  2. is the heuristic $h_m = \alpha(h_a) + (1 - \alpha)(h_b)$ admissible/consistent for $0 \leq \alpha \leq 1$?

Solution

Sliding puzzle heuristics

Consider the sliding puzzle as a planning problem.

question 1: How many potential states are there? Are all of them reachable?

question 2: Try to come up with some heuristics for this specific planning task.

question 3: Consider the following heuristics:

(hidden because of question 2)

Are they admissible? Are they consistent (think about some arguments/potential counter-examples to support your opinions)?

qeustion 4: Try to come up with a different heuristic that is both inconsistent and reasonable to use.

question 5: So far we assumed that only one tile can move at a time. Would all the heuristics discussed so far change their properties if we were allowed to move an entire line/column at once? (That is, (up to) two tiles for a 3×3 puzzle, up to three tiles for 4×4 puzzle…)

courses/pui/tutorials/tutorial02.txt · Last modified: 2025/02/24 11:20 by herynjac