• Keine Ergebnisse gefunden

Deductive Databases & Knowledge Based Systems Sheet 1 (until 14.11.2008)

N/A
N/A
Protected

Academic year: 2021

Aktie "Deductive Databases & Knowledge Based Systems Sheet 1 (until 14.11.2008)"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Exercises for Relational Databases 1

Institut für Informationssysteme – TU Braunschweig - http://www.ifis.cs.tu-bs.de

Technische Universität Braunschweig Institut für Informationssysteme http://www.ifis.cs.tu-bs.de Wolf-Tilo Balke, Christoph Lofi

Deductive Databases & Knowledge Based Systems Sheet 1 (until 14.11.2008)

Please note that you need 50% of all exercise points to be admitted for the final exams. Ex- ercises have to be turned in until Tuesday before the next lecture and should be completed in teams of two students each. Write both names and “Matrikelnummer” on each page. If you have multiple pages, staple them together! Please hand in your solutions on paper into the mailbox at the IFIS floor (Mühlenpfordtstraße 23, 2

nd

floor, opposite of elevator). You may answer in either German or English.

Exercise 1

All the sub-exercises should be answered with First Order Logic in mind. Answer briefly!

1. Describe the relation between a language, an interpretation, and a system.

(3 points)

2. What is the difference between functions and predicates? Could you use functions instead of predicates or vice-versa? (3 points)

3. What is the difference between a term and an atom? (2 points) 4. What is an open or closed formula? (2 points)

5. What is a rectified formula and which problem does it address? (2 points)

6. What is the difference between an interpretation and a substitution? Would it be a good idea to merge the substitution into the interpretation? (3 points)

7. What is closed world assumption and why is it often used in deductive databases?

(2 points) Exercise 2

All the sub-exercises should be answered with First Order Logic in mind.

1. Design a first order language for simple arithmetic’s on natural numbers. One should be able to add numbers, subtract numbers, multiply two numbers, decide if a num- ber is equal another number, and if a number is greater than another number. (4 points)

2. Provide an interpretation for your language of the previous sub-exercise. (4 points) 3. Provide a formula for following statements: (4 points)

a. “5 is greater than 2”

b. “If x is greater than 0, then also x*y is greater than 0”

c. “x is either greater than y, or x is equal to y, or x is smaller than y”

(2)

Exercises for Relational Databases 1

Institut für Informationssysteme – TU Braunschweig - http://www.ifis.cs.tu-bs.de

Technische Universität Braunschweig Institut für Informationssysteme http://www.ifis.cs.tu-bs.de Wolf-Tilo Balke, Christoph Lofi

d. “The sum of any two numbers is always smaller than the product of the same two numbers”

4. Evaluate the previous terms a-d. Are they always true? Can they be true?

If a term is not always true but can be true, provide an example substitution which makes it true. (4 points)

Exercise 3

All the sub-exercises should be answered with First Order Logic in mind.

1. Given is a language ℒ = (Γ, Ω, Π, Χ) with Γ: = 𝑎, 𝑏 , Ω: = 𝑓(𝑥), 𝑔(𝑥, 𝑦) , Π ≔ 𝑃, 𝑄 𝑥, 𝑦 , 𝑅(𝑥) , and Χ ≔ {x, y}.

a. Provide at least 10 (different) terms for ℒ. (2 points) b. Provide at least 6 (different) atoms for ℒ. (2 points)

2. Are the following “strings” valid formulas with respect to ℒ? (4 points) a. 𝑓(𝑔(𝑥, 𝑦))

b. 𝑃

c. 𝑄 𝑥, 𝑦 ∨ 𝑄(𝑎, 𝑏) d. 𝑄(𝑔 𝑓 𝑎 , 𝑥 , 𝑓(𝑦)) e. ∀𝑎(𝑅(𝑎))

f. ∃𝑥(𝑓(𝑥))

g. 𝑅 𝑥 → ¬𝑅(𝑥)

h. ¬𝑅(¬𝑅(𝑓(𝑥)))

Referenzen

ÄHNLICHE DOKUMENTE

Technische Universität Braunschweig Institut für Informationssysteme http://www.ifis.cs.tu-bs.de Christoph Lofi.. Deductive Databases & Knowledge Based Systems

Technische Universität Braunschweig Institut für Informationssysteme http://www.ifis.cs.tu-bs.de Christoph Lofi.. Deductive Databases & Knowledge Based Systems

Technische Universität Braunschweig Institut für Informationssysteme http://www.ifis.cs.tu-bs.de Christoph Lofi.. Deductive Databases & Knowledge Based Systems

Compute the fixpoint relations by using your results

Briefly explain (aka simple and short without formulas) how belief, disbelief and cer- tainty factors are related?. What do

Wolf-Tilo Balke, Christoph Lofi, yourself (both of you if you are a team of two), the cur- rent KBS lecture, your final exam(s) resulting in a certificate with an excellent grade

Intitute (with a property leadBy to Person and some useful properties to Lecture and University). The property supervises which is a subproperty of

Try to answer briefly , precisely and understandable (remember: we will have oral exam - abstracting and explaining is important)?. What is the conceptual difference between Jacobi