Jump to content

Answer set programming:

Featured Replies

Hi,

I ran the following program on the answer set:

p :- not q.

r :- p.

s:- r, not p.

I executed the program on clingu (https://potassco.org/clingo/run/)

I am getting the Answr set (AS) : {p, r}

Why s is not in the answer set.

 

Some body please guide me.

 

Zulfi.

 

 

 

6 hours ago, zak100 said:

r :- p.

s:- r, not p.


question: does the above imply

s:- p, not p

was that intended? Is that why s is not in answer set?

( I haven’t done much in this kind of programming yet. )

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.