KRLabBB Forum Index KRLabBB
The bulletin board of the Knowledge Representation Lab
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Search for at
KRLabBB Advanced Search

Q: Can we "combine" candidate a.s. and a.s. defini

 
Post new topic   Reply to topic   printer-friendly view    KRLabBB Forum Index -> CR-Prolog
View previous topic :: View next topic  
Author Message
marcy
Site Admin


Joined: 23 Oct 2005
Posts: 209

PostPosted: Jun Mon 19, 2006 2:20 pm    Post subject: Q: Can we "combine" candidate a.s. and a.s. defini Reply with quote

[Thanks to Nam Tran]
Q: Can the definitions of candidate answer sets and answer sets be combined as follows?

View <M1,R1> is better than view <M2,V2> iff:
1. R1 \subset R2; or
2. neither R1 \subset R2 nor R2 \subset R1, but R1 dominates R2.

M1 is an answer set if there exists a view <M1,R1> of P such that, for every view <M2,R2>, <M2,R2> is not better than <M1,R1>.

A: NO, the proposed definition is not equivalent to the original ones. Consider the following program, P:

Code:

r1: p +-.
r2: q +-.
r3: s +-.

prefer(r3,r1) :- not q.

:- s,p.
:- s,q.

:- not a.
a :- p.
a :- s.


The views of P are:

V1=<{a,p,prefer(r3,r1)},{r1}>
V2=<{a,p,q},{r1,r2}> <--- no prefer atom
V3=<{a,s,prefer(r3,r1)},{r3}>

If we apply the original definitions, we obtain:

1. V3 dominates V1. Candidate answer sets: V2 and V3
Hence, the answer sets of P are V2 and V3.

If we apply the proposed definition, we get:

* rules(V1) \subset rules(V2). Hence, V1 is better than V2.
* V3 dominates V1. Hence, V3 is better than V1.

Therefore, according to the proposed definition, V3 is the only answer set of P.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    KRLabBB Forum Index -> CR-Prolog All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group :: Spelling by SpellingCow.