• Keine Ergebnisse gefunden

Exercise Sheet 03

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise Sheet 03"

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 03

(Datalog Fixpoint Semantics)

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

Exercise 1

Given 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) :- Y = W, p(X, Y), p(W, Z).

a) Transform the program to relational algebra by providing eval(p) and eval(r).

b) Compute the fixpoint relations by using your results from 1.

Referenzen

ÄHNLICHE DOKUMENTE

actor(person → Person, movie → Movie, role) director(person → Person, movie → Movie) hasGenre(movie → Movie, genre → Genre) connection(from → Movie, to → Movie, type)..

f) Show a list of all people (name) that includes the number of movies they have participated in as an actor. Of course, the list should also include all people that have

Whilst those with whose beliefs and practices I am concerned here routinely interact with Islamic 'specialists' of one kind or another - whether in the form of the maulwis who

1) Inventory, reprocessing and analysis of existing data from the Weddell Sea to evaluate and identify key areas, which are in the need of protection. 2) Discussion, improvement

You have to ensure that you have copied the source code of your solved exercises to the server before the exercise class starts.. If necessary, ask your tutor how to copy files

The Imaging Cartridge’s model number is described in your Reference Guide

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

Exercise 3, Ch.4: How large is the hierarchically aggregated cube (without base table) for an aggregation up to the levels of the prefixes of calls, geographic 100*100 m squares