PS #1, Due 09/18 (updated to reflect 9/11 class cancellation)
What's wrong with the following "proof" by induction that all frogs are
the same color?
Base Case: Clearly for any set containing just 1 frog all frogs
in the set have the same color.
Inductive Assumption: Assume true for all sets containing i = 1, ..., N frogs.
Inductive Step: To prove that all frogs in a set of N+1 frogs have
the same color,
consider
removing the first frog. By the induction assumption, then, the last N
frogs must all have the same color. Now put the first frog back in and
consider
removing the last frog. Again, by the inductive assumption the first N frogs
must all have the same color.
Thus each frog in this set of N+1 frogs has the same color, and consequently
so will
any set of
N+2, N+3, ... frogs. In other words, all frogs must have the same color.
and
is as
defined on p.16 in the text. Is it appropriate to
?
Why or why not?
,
,q0,F)
where
= {a,b}
= {(q0,a,q0),(q0,b,q0),(q0,b,q1),(q1,b,q2),
(q1,a,q3),(q2,
,q4),(q3,b,q4),(q4,a,q4),
(q4,b,q4)}
for all
,q') triplet denotes
(q,
) = q',
for
{a,b,
}.
*(q0,w) = q0 AND
*(q0,w) = q4 are possible.
L(M)?
-transitions.
or
.