• Keine Ergebnisse gefunden

Exercise Sheet 02

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise Sheet 02"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Exercises for Deductive Databases and Knowledge-Based Systems Institut für Informationssysteme – TU Braunschweig - http://www.ifis.cs.tu-bs.de

Exercise Sheet 02

(Datalog Herbrand Models)

Please note: The exercises will be neither collected, corrected, nor graded.

Exercise 1

a) What is a least Herbrand model?

b) What are minimal Herbrand models?

c) What are perfect Herbrand models?

Exercise 2

Provide the following Datalogf program:

edge(3, 2).

edge(2, 6).

edge(2, 5).

edge(5, 3).

path(X, Y) :- edge(X, Y).

path(X, Z) :- edge(X, Y), path(Y, Z).

Compute the least model step by step using the fixpoint iteration.

Exercise 3

Provided is the following Datalogneg program:

q(1, 2).

q(2, 3).

s(1, 3).

r(X, Y) :- s(X, Y).

p(X, Y) :- q(X, Y), ¬r(X, Y).

p(X, Y) :- q(X, Y), ¬s(X, Y).

p(X, Y) :- p(X, Y), p(X, Y).

a) Provide all minimal Herbrand models of the program.

b) Provide a program connection graph and stratification for the program.

c) Partition the program according the stratification into 𝒫 ≔ 𝒫0⨃ ⨃ … ⨃ 𝒫k. d) Compute the perfect model step by step using the iterated fixpoint iteration.

e) Datalogf is supposed to be computationally complete. Thus, the above program should be able to be expressed in Datalogf. Provide an equivalent version of the program without negation.

Referenzen

ÄHNLICHE DOKUMENTE

ons-grade plutonium; secondly, as opposed to what was agreed upon in Geneva, verification measures go beyond the Additional Protocol to the safeguards agreement be- tween Iran and

What you do need is ready access to any palaeography you can lay your hands on, so apart from the concise palaeography compiled by Joost Golverdingen for An Abnormal Hieratic

Auf 280 Seiten und etwa 950 farblichen Abbil- dungen sind Beiträge zu den Themen moderne Prothetik, konservierende Zahnheilkun- de, Endodontie sowie Implan- tologie und

Schmidt.. der

Maßnahmenevaluation: Die Formulierungen für Evaluations- bereiche festlegen, Maßnahmen- ziele klären, Indikatoren festlegen, Instrumente auswählen (können aus dem

Auch hier bietet die virtuelle Bibliothek der Universitäts- und Landes- bibliothek Düsseldorf einen geeigneten Einstieg - im Unterpunkt Sprach- und Literaturwissenschaft gibt es

This model identifies benchmark units and target input and output levels for units that do not meet the high-perceived quality and high-efficiency criteria, at the same

To celebrate the 385th anniversary of the Joyous Entry of Cardinal-Infant Ferdinand of Spain into Antwerp in 1635, which had been largely designed by Peter Paul Rubens, a conference