• Keine Ergebnisse gefunden

Foundations of Artificial Intelligence

N/A
N/A
Protected

Academic year: 2022

Aktie "Foundations of Artificial Intelligence"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Foundations of Artificial Intelligence

M. Helmert S. Eriksson Spring Term 2021

University of Basel Computer Science

Exercise Sheet 11

Due: May 19, 2021 Exercise 11.1(1+1 marks)

Are the following statements about landmarks correct? Justify your answer.

(a) IfLis a landmark and ais an action not occuring inL, thenL0=L∪ {a} is a landmark.

(b) Given a set of landmarks L which are pairwise disjoint (meaning we have Li∩Lj =∅ for all Li ∈ Land Lj ∈ Lwithi 6=j), the sum of the costs of all landmarks is an admissible heuristic.

Exercise 11.2(3 marks)

Consider the delete-free STRIPS planning task Π+=hV, I, G, Ai, with variablesV ={i, a, b, c, d, e, f, g}, initial stateI={i}, goal descriptionG={g}, and actionsA={a1, . . . , a7}, where

pre(a1) ={i} add(a1) ={a, b} cost(a1) = 2 pre(a2) ={i} add(a2) ={b, c} cost(a2) = 3 pre(a3) ={a} add(a3) ={d, e} cost(a3) = 5 pre(a4) ={b, c} add(a4) ={e, f} cost(a4) = 3 pre(a5) ={e, f} add(a5) ={d} cost(a5) = 2 pre(a6) ={e} add(a6) ={f} cost(a6) = 4 pre(a7) ={d, f} add(a6) ={g} cost(a6) = 0.

ComputehLM-cut(I) and provide all intermediate results in the same way they were given in the example of the lecture. Specifically, provide the following for each iteration except the last one (wherehmax(g) = 0):

• the justification graph withhmax annotations and marked goal zone

• the cut

• the cost of the cut

• the updated action costs

In cases where the precondition choice function is not deterministic, choose the precondition in alphabetical order.

Exercise 11.3(2+2+1 Punkte)

A state in theNim game consist ofn >0 stacks of coins where ci ≥0 is the number of coins on stacki. Players MAX and MIN alternate (with MAX starting) choosing a nonempty stackiand removing between 1 andci coins from it. Whichever player removes the last coin from the last stack wins the game.

(a) Draw the game tree for a game starting with two stacks, one with three coins and one with one coin. Denote leaves with 1 if they represent a winning state for MAX and with −1 if they represent a winning state for MIN.

(2)

(b) Apply Minimax in order to determine the value of the root. Which player has a winning strategy?

(c) Who would have the winning strategy if the initial state would be (4,1)? Justify your answer by describing the winning strategy.

Submission rules:

Upload a single PDF file (ending .pdf). If you want to submit handwritten parts, include their scans in the single PDF. Put the names of all group members on top of the first page. Use page numbers or put your names on each page. Make sure your PDF has size A4 (fits the page size if printed on A4).

Referenzen

ÄHNLICHE DOKUMENTE

Provide a worst-case runtime estimate of the algorithm based on cutset conditioning if your cutset from the first part of this exercise is used (i.e., compute an upper bound for

Perfom DPLL on the clause set {{A, ¬B}, {¬A, B}, {B, ¬D}, {C}, {¬C, ¬B, ¬D}, {C, D}}, always picking the variable occuring in the highest number of clauses and always considering

Characterize the following definitions of Artificial Intelligence with respect to the four categories (acting humanly, thinking humanly, thinking rationally, acting rationally)

– one line for each table position: maximum number of blocks in the tower at this table position, followed by the IDs of the blocks in the initial state, starting from the surface

Successor nodes are generated by applying the following actions in order, ignoring the ones that are inapplicable in a given state: transport 2 missionaries, transport 1

(c) Test your implementation by verifying the statements on Slide 23 of Chapter 20 (print version), which state that hill climbing with a random initialization finds a solution

Provide a worst-case runtime estimate of the algorithm based on cutset conditioning if your cutset from the first part of this exercise is used (i.e., compute an upper bound for

The domain description (variables and actions) is given in the file bridges-once-domain.pddl, and the problem description (objects, initial state and goal description) is given in