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 233 — #241<br />

7.5. Induction in <strong>Computer</strong> <strong>Science</strong> 233<br />

[h]<br />

Figure 7.3<br />

DET T 0 from Four Copies of DET T<br />

[h]<br />

Figure 7.4<br />

Trapezoid from Three Triangles<br />

Properties of DETs were proved earlier by induction on the length of a side of the<br />

triangle. Recognizing that the definition of DETs is recursive, we can instead prove<br />

properties of DETs by structural induction.<br />

(a) Prove by structural induction that a DET with one of its corner subtriangles<br />

removed can be tiled with trapezoids built out of three subtriangles as in Figure 7.4.<br />

(b) Explain why a DET with a triangle removed from the middle of one side can<br />

also be tiled by trapezoids.<br />

(c) In tiling a large square using L-shaped blocks as described in Section 5.1.5,<br />

there was a tiling with any single subsquare removed. Part (b) indicates that trapezoidtilings<br />

are possible <strong>for</strong> DETs with a non-corner subtriangle removed, so it’s natural<br />

to make the mistaken guess that DETs have a corresponding property:<br />

False Claim. A DET with any single subtriangle removed can be trapezoid-tiled.<br />

We can try to prove the claim by structural induction as in part (a).<br />

Bogus proof. The claim holds vacuously in the base case of a DET with a single<br />

subtriangle.<br />

Now let T 0 be a DET made of four copies of a DET T , and suppose we remove an<br />

arbitrary subtriangle from T 0 .<br />

The removed subtriangle must be a subtriangle of one of the copies of T . The<br />

copies are the same, so <strong>for</strong> definiteness we assume the subtriangle was removed

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

Saved successfully!

Ooh no, something went wrong!