06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 78 — #86<br />

78<br />

Chapter 3<br />

Logical Formulas<br />

(b) Demonstrate that this set of specifications is satisfiable by describing a single<br />

truth assignment <strong>for</strong> the variables L; Q; B; N and verifying that under this assignment,<br />

all the specifications are true.<br />

(c) Argue that the assignment determined in part (b) is the only one that does the<br />

job.<br />

Problems <strong>for</strong> Section 3.4<br />

Practice Problems<br />

Problem 3.16.<br />

A half dozen different operators may appear in propositional <strong>for</strong>mulas, but just<br />

AND, OR, and NOT are enough to do the job. That is because each of the operators<br />

is equivalent to a simple <strong>for</strong>mula using only these three operators. For example,<br />

A IMPLIES B is equivalent to NOT.A/ OR B. So all occurences of IMPLIES in a<br />

<strong>for</strong>mula can be replaced using just NOT and OR.<br />

(a) Write <strong>for</strong>mulas using only AND, OR, NOT that are equivalent to each of AIFFB<br />

and A XOR B. Conclude that every propositional <strong>for</strong>mula is equivalent to an AND-<br />

OR-NOT <strong>for</strong>mula.<br />

(b) Explain why you don’t even need AND.<br />

(c) Explain how to get by with the single operator NAND where A NAND B is<br />

equivalent by definition to NOT.A AND B/.<br />

Class Problems<br />

Problem 3.17.<br />

The propositional connective NOR is defined by the rule<br />

P NOR Q WWD .NOT.P / AND NOT.Q//:<br />

Explain why every propositional <strong>for</strong>mula—possibly involving any of the usual operators<br />

such as IMPLIES, XOR, . . . —is equivalent to one whose only connective is<br />

NOR.<br />

Problem 3.18.<br />

Explain how to read off a conjunctive <strong>for</strong>m <strong>for</strong> a propositional <strong>for</strong>mula directly<br />

from a disjunctive <strong>for</strong>m <strong>for</strong> its complement.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!