• 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 J. Seipp

Spring Term 2019

University of Basel Computer Science

Exercise Sheet 8

Due: April 24, 2019 Due to the Easter break, this sheet only has a total of 8 marks.

Exercise 8.1(2+1 marks)

Consider the constraint network that is given by the graph coloring problem of a graphG=hV, Ei.

The set of verticesV contains a vertex for each Swiss canton, andEis such that two verticesvand v0 are connected iff the cantons v andv0 share a border. A description of Gcan be downloaded from the website of the course.

(a) Provide a cutset V0 ⊆V for Gthat is as small as possible (it is not necessary to provide an explanation how you have found V0). As a reminder, a cutset of a graph is defined as a set of vertices that is such that the induced subgraph that is obtained by removing these vertices results in an acyclic graph.

Note: You get 2 marks for your solution if your cutset is optimal, 1 mark if your cutset contains exactly one more vertex than an optimal cutset and 0 marks otherwise.

(b) Assume we are interested in coloringGwith 4 colors. 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 number of considered assignments). Compare your result to the estimated runtime if no cutset is used.

Hint: It is simpler to solve this exercise if a graph visualization tool like, for instance, graphviz is used. The description of G that can be found on the website of the course is formatted for graphviz. If you use Linux, you can create a pdf visualization of the graph with:

dot -T pdf -o cantons.pdf cantons.dot

Exercise 8.2(0.5+0.5+0.5+0.5 marks)

Formalize the following statements as propositional formulas. In order to do so, also define ap- propriate atomic propositions that clearly express what they encode.

(a) If Alice drinks lemonade or water, she is not thirsty.

(b) If Alice is thirsty and she has money, she buys lemonade.

(c) Either Alice drinks lemonade or she eats a sandwich (but not both).

(d) Alice only drinks lemonade in summer.

(2)

Exercise 8.3(3 marks)

Consider the following syntax extension for propositional logic: ψ↔η is a propositional formula ifψandη are propositional formulas. Furthermore, let the semantics of↔be defined by

I|=ψ↔η iffI|=ψ→η andI|=η→ψ.

Now consider the propositional formula

ϕ= ((A→B)∨C)∧(D↔ ¬(C→A)) and the interpretation

I={A7→T, B7→T, C 7→F, D7→F}.

Use only the definition of|= to show that I|=ϕ. Provide each intermediate step.

Important: Solutions should be submitted in groups of two students. However, only one student should upload the solution. Please provide both student names on each file and each page you submit. We can only accept a single PDF or a ZIP file containing *.java or *.pddl files and a single PDF.

Referenzen

ÄHNLICHE DOKUMENTE

(b) Test your implementation by verifying the statements on Slide 24 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

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

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

– 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

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