[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Forum Maschinenbau Rostock • Thema anzeigen - Übung 02.2

Übung 02.2

Übung 02.2

Beitragvon Hotte » Mo 25. Okt 2010, 15:22

Hi.

Ich wollte hier nochmal meine Lösung herausgeben. Vielleicht kann noch jemand etwas berichtigen bzw. sich Ideen für seine eigene Lösung sammeln.

([A AND NOT B] OR [NOT A AND B]) AND NOT C

Obwohl ich hier lieber "(A XOR B) AND NOT C" geschrieben hätte, aber laut Aufgabe sind ja nur AND, OR und NOT erlaubt. :|


Wahrheitswertetabelle:

A B C ([A AND NOT B] OR [NOT A AND B]) AND NOT C
0 0 0 0
0 1 0 1
0 0 1 0
1 0 0 1
1 1 0 0
1 0 1 0
0 1 1 0
1 1 1 0


Freu mich auf Kommentare.

MfG
"skilled metal worker"
Hotte
 
Beiträge: 129
Registriert: So 24. Okt 2010, 19:38

Re: Übung 02.2

Beitragvon Marcus » Mo 25. Okt 2010, 16:09

hab letztenendes auch dein zahlenergenis, aber ne andere schreibweise am anfang:

[(A OR B) AND NOT (A AND B)] AND NOT C

kommt bei mir raus:

A B C Ergebnis
1 1 1 0
1 1 0 0
1 0 1 0
1 0 0 1
0 1 1 0
0 1 0 1
0 0 1 0
0 0 0 0

denke es gibt hier mehrere möglichkeiten...
Marcus
 
Beiträge: 96
Registriert: Do 14. Okt 2010, 15:06

Re: Übung 02.2

Beitragvon mrnick » Mo 25. Okt 2010, 20:34

mrnick
 
Beiträge: 12
Registriert: Di 12. Okt 2010, 13:28

Re: Übung 02.2

Beitragvon Hotte » Mi 27. Okt 2010, 15:22

hm bin ich nicht der Meinung, da ja "A AND NOT B" nicht auftreten´kann, wenn "NOT A AND B" gilt.

Wenn ich A=1 und B=1 habe, dann steht da sozusagen:

"([0] OR [0])" --> und das ist 0.

Habe Dich verstanden, doch nach weiteren Überlegungen bin ich der Meinung, dass es so richtig ist. Naja, ist ja jetzt auch schon zur Bewertung abgegeben. Mal schauen was dabei raus kommt.

MfG
"skilled metal worker"
Hotte
 
Beiträge: 129
Registriert: So 24. Okt 2010, 19:38


Zurück zu Übungsblatt 2

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast