Wednesday, December 5, 2012

Proof Works (II)

Hey there! Now then, let's get down to business.

I'd like to talk first about a question from the recent assignment. For the first question, we were supposed to prove that a DFSA that accepts L, where L = {x ∈{0, 1}* | fourth-last symbol in x is 0} has at least 16 states. I tried to design such a DFSA. I'm sooo close to making one. I was able to design a DFSA that accepts L, where L = {x ∈{0, 1}* | third-last symbol in x is 0}, which I'll post here.
While working on this problem, I think I've figured out how to prove the claim- unfortunately AFTER the assignment was due. (Orz) A good way to approach questions about finite state automata, as I've learned in tutorials, is to draw out every possibility as one state, then draw transition arrows between them. This sounds pretty logical, but before learning this, I would usually just charge head-on into a problem (a.k.a. the stupid approach). Anyway, for this question, here is what I SHOULD have done:

The combinations of all 16 4-bit strings containing 0s and 1s:
*each arrow represents one change in the binary string


From the diagram we can see that we need 16 states to represent each 4-bit string. If one state is missing, say 1101, some states will not be accounted for, and some strings, like 1100 and 1111, will end up being accepted, contradicting the definition of the language!

Ah, I wish I thought of this before the due date.. orz

Mmm I'm still working on the machine that accepts strings with a 0 in the fourth last position. Many frustrated hours were poured into this question (since I read the question wrong at the beginning and struggled to design this machine). Danny said that designing such a machine would be good for the soul (haha), so I might as well cleanse my soul and keep working on it...

No comments:

Post a Comment