Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Logica matematica > DPLL del primo compito
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
DPLL del primo compito

Curiosita':

Nel compito il secondo esercizio di DPLL richiedeva di portare in forma normale congiuntiva una certa formula. Ho provato e riprovato, e alla fine mi veniva un pezzo della formula che era :

(p1 /\ p2) /\ (¬q1 \/ ¬q2)

che non riuscivo a risolvere (poi l'ho risolto, male, per non lasciare in bianco. ma ho sicuramente sbagliato).

Siccome uscendo dall'aula m'e' sembrato di sentire qualcun altro che aveva avuto lo stesso problema vi chiedo: e' capitato anche a voi?

EDIT: corretta formula

Last edited by Simeon on 31-03-2008 at 14:49

31-03-2008 10:02
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marcooo
.amico.

User info:
Registered: Sep 2007
Posts: 30 (0.00 al dì)
Location:
Corso: TLC
Anno: indefinito
Time Online: 20:38:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy

Mi è capitata la stessa cosa...
c'ho provato in tutti i modi ma alla fine ho lasciato in bianco...
qualcuno sa dirci come si risolveva???

31-03-2008 10:09
Click Here to See the Profile for marcooo Click here to Send marcooo a Private Message Find more posts by marcooo Add marcooo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
francescoo
.primate.

User info:
Registered: Feb 2008
Posts: 75 (0.01 al dì)
Location: novara
Corso: informatica
Anno: secondo
Time Online: 20:29:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io non avevo questo esercizio comunque si dovrebbe risolvere cosi:
abbiamo
(p1 /\ p2) \/ (¬q1 \/ ¬q2)

prendo
(p1 /\ p2) come (D1 /\ D2)
(¬q1 \/ ¬q2) come C
e applico la formula (D1 /\ D2) V C = (D1 \/ C) /\ (D2 \/ C)

quindi mi ritrovo con

(p1 V (¬q1 \/ ¬q2)) /\ (p2 \/ (¬q1 \/ ¬q2))
quindi:
(p1 V ¬q1 \/ ¬q2) /\ (p2 \/ ¬q1 \/ ¬q2)
cosi dovrebbe essere corretto
ditemi se avete capito..

31-03-2008 12:22
Click Here to See the Profile for francescoo Click here to Send francescoo a Private Message Find more posts by francescoo Add francescoo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

No no aspetta, mi sono sbagliato. E' giusto quello che hai scritto, ma il pezzo di formula che veniva e' :

(p1 /\ p2) /\ (¬q1 \/ ¬q2)

Io l'ho risolta esattamente come hai detto tu, ma in questo caso e' sbagliato perche tra le due parentesi abbiamo una congiunzione, non una disgiunzione.

Comunque credo d'aver capito, anche se mi suona strano.

Il pezzo di partenza era

¬( (p1 /\ p2) -> (q1 /\ q2) )

risolvendola considerando ¬(a -> b) = a /\ ¬b veniva

(p1 /\ p2) /\ (¬q1 \/ ¬q2) (che e' quella che non so risolvere in nessun modo)

invece considerando soltanto (p1 /\ p2) -> (q1 /\ q2) (ignorando la negazione esterna) mi viene

¬((¬p1 \/ ¬p2) \/ (¬q1 /\ ¬q2))

e questa si potrebbe risolvere come dici tu.

Non mi torna che in un modo funzioni e nell'altro no ma boh, tanto non penso che basti un esercizio per l'insufficienza.


Last edited by Simeon on 31-03-2008 at 14:57

31-03-2008 14:48
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
francescoo
.primate.

User info:
Registered: Feb 2008
Posts: 75 (0.01 al dì)
Location: novara
Corso: informatica
Anno: secondo
Time Online: 20:29:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

(p1 /\ p2) /\ (¬q1 \/ ¬q2)
quindi è ancora piu semplice
poiche hai /\ allo stesso livello quindi:

p1 /\ p2 /\ (¬q1 \/ ¬q2)
quindi hai l'insime di clausole C=p1,p2,¬q1 \/ ¬q2
e puoi applicare a queste la dpll
o no?
dimmi se è corretto..

31-03-2008 15:57
Click Here to See the Profile for francescoo Click here to Send francescoo a Private Message Find more posts by francescoo Add francescoo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by francescoo
(p1 /\ p2) /\ (¬q1 \/ ¬q2)
quindi è ancora piu semplice
poiche hai /\ allo stesso livello quindi:

p1 /\ p2 /\ (¬q1 \/ ¬q2)
quindi hai l'insime di clausole C=p1,p2,¬q1 \/ ¬q2
e puoi applicare a queste la dpll
o no?
dimmi se è corretto..


Penso che sia sbagliato, p1 /\ p2 non e' una clausola e in fnc abbiamo una congiunzione di clausole.

31-03-2008 19:52
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
francescoo
.primate.

User info:
Registered: Feb 2008
Posts: 75 (0.01 al dì)
Location: novara
Corso: informatica
Anno: secondo
Time Online: 20:29:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non mi hai capito..
p1 è una clusola,p2 è un altra clusola,¬q1 \/ ¬q2 è un altra clusola ancora
hai tre clausole in totale
ok?

31-03-2008 20:54
Click Here to See the Profile for francescoo Click here to Send francescoo a Private Message Find more posts by francescoo Add francescoo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by francescoo
non mi hai capito..
p1 è una clusola,p2 è un altra clusola,¬q1 \/ ¬q2 è un altra clusola ancora
hai tre clausole in totale
ok?


Ora ho capito :asd:

Cavolo a pensarci bene... pero' non mi torna con quelle parentesi, boh. Magari hai ragione.

31-03-2008 22:31
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 18:07.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.081 seconds (62.00% PHP - 38.00% MySQL) con 23 query.