09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36 SUMS<br />

instead of summing over all integers j and k. These variations come in two<br />

flavors, vanilla and rocky road. First, the vanilla version:<br />

(2.29)<br />

This is just another way to write (2.27), since the Iversonian [j E J, kE K]<br />

factors into [j E J] [k E K]. The vanilla-flavored law applies whenever the ranges<br />

of j and k are independent of each other.<br />

The rocky-road <strong>for</strong>mula <strong>for</strong> interchange is a little trickier. It applies when<br />

the range of an inner sum depends on the index variable of the outer sum:<br />

x t ai,k = x t ai,k.<br />

jEJ kEK(j)<br />

M’K’ iEJ’(k)<br />

Here the sets J, K(j), K’, and J’(k) must be related in such a way that<br />

[jEJl[kEK(j)] = [kEK’l[jEJ’(k)].<br />

(2.30)<br />

A factorization like this is always possible in principle, because we can let<br />

J = K’ be the set of all integers and K(j) = J’(k) be the basic property P(j, k)<br />

that governs a double sum. But there are important special cases where the<br />

sets J, K(j), K’, and J’(k) have a simple <strong>for</strong>m. These arise frequently in<br />

applications. For example, here’s a particularly useful factorization:<br />

[16j

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

Saved successfully!

Ooh no, something went wrong!