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 72 — #80<br />

72<br />

Chapter 3<br />

Logical Formulas<br />

(d) The speed or latency of a circuit is determined by the largest number of gates<br />

on any path from an input to an output. In an n-bit ripple carry circuit(Problem 3.6),<br />

there is a path from an input to the final carry output that goes through about 2n<br />

gates. In contrast, parallel half-adders are exponentially faster than ripple-carry<br />

half-adders. Confirm this by determining the largest number of propositional operations,<br />

that is, gates, on any path from an input to an output of an n-bit add1-module.<br />

(You may assume n is a power of 2.)<br />

c<br />

a 2nC1 a nC2 a nC1<br />

a n a 1 a 0<br />

.nC1/-bit add1 c .1/ .nC1/-bit add1<br />

r n r 1 r 0<br />

2.nC2/-bit add1 module<br />

c .2/<br />

Figure 3.1 Structure of a Double-size add1 Module.<br />

p 2nC1<br />

p nC2 p nC1<br />

p n p 1 p 0<br />

Exam Problems<br />

Problem 3.8.<br />

Claim. There are exactly two truth environments (assignments) <strong>for</strong> the variables<br />

M; N; P; Q; R; S that satisfy the following <strong>for</strong>mula:<br />

.P OR Q/ AND .Q OR R/ AND .R OR S/ AND .S OR P / AND M AND N<br />

„ ƒ‚ … „ ƒ‚ … „ ƒ‚ … „ ƒ‚ …<br />

clause (1)<br />

clause (2)<br />

clause (3)<br />

clause (4)

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

Saved successfully!

Ooh no, something went wrong!