Computer Science CPSC 322
Lec ecture 17 Da Datal alog
- g
Int ntro
- to
- Prob
- babi
bility
1
Lec ecture 17 Da Datal alog og Int ntro o to o Prob obabi - - PowerPoint PPT Presentation
Computer Science CPSC 322 Lec ecture 17 Da Datal alog og Int ntro o to o Prob obabi bility 1 Lect cture re O Overvi rview Recap of Lecture 16 TD: soundness and completeness SLD Resolution in Datalog Intro to
1
2
BU G if G ⊆ C at the end of this procedure
Slide 3
4
5
1 …∧ am m
i+1 ...
6
8
Prove: ?← a ∧ d.
9
Prove: ?← a ∧ d.
can trace the example in the Deduction Applet at http://aispace.org/deduction/ using file kb-for-top- down-search available in course schedule
10
11
Knowledge Base, which can be edited by switching to “create” mode”
12
By right clicking on a node and selecting “view proof deduction” the applet shows the tree with the resolution steps that led to that node
Prove: ?← a ∧ d.
13
14
15
16
Definite clauses that generated this derivation
18
19
20
21
22
23
24
26
27
28
29
30
31
in(X,Y) ← part_of(Z,Y) & in(X,Z). with Y = cs_building X = alan
32
Using clause: in(X,Y) ← part_of(Z,Y) ∧ in(X,Z), with Y = cs_building X = alan Using clause: part_of(r123,cs_building) with Z = r123
33
Using clause: in(X,Y) ← part_of(Z,Y) ∧ in(X,Z), with Y = cs_building X = alan Using clause: part_of(r123,cs_building) with Z = r123
34
Using clause: in(X,Y) ← part_of(Z,Y) & in(X,Z), with Y = cs_building X = alan Using clause: part_of(r123,cs_building) with Z = r123 Using clause: in(alan, r123). Using clause: in(X,Y) ← part_of(Z,Y) & in(X,Z). With X = alan and Y = r123
No clause with matching head: part_of(Z,r123).
35
36
37
38
39
40
41
42
http://www.w3.org/People/Ivan/CorePresentations/SWTutorial/
43
44
45
46
47
48
49
50
This is not a dichotomy: framework for probability is logical!
51
52