Wednesday, December 5, 2012

Fallacies? Paradoxes? Impossible! ~epilogue

Hey there netizens!

CSC236 has led me to think about paradoxes, fallacies, and impossibilites and the limits of induction.
And so, outside of the blog, I've looking into some fallacies and paradoxes, and unsolvable problems. They're very interesting. The most famous one every computer scientist has heard of is the Halting Problem. For those who don't know about it, it is basically the dilemma of finding an answer to whether an arbitrary program will halt some time or run forever. Computer geeks enthusiasts will also know that in 1936, Alan Turing proved that an algorithm to solve this problem does NOT exist. A great man, Alan Turing.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Well, I'm not sure what to put here, since most problems are already solved or way beyond me. Anyhow, I'll still take a crack at these problems in my spare time (when I'm not gaming). I may even continue updating this blog as well ^^. I might even start a problem of the week kind of thing on this blog. (Why didn't I think of this at the start of the course? orz)

So this is it huh. What a long journey's it's been.
Thanks Danny for letting me start this blog. Thanks CSC236 for beating some logic into me. And thank you, for reading through all my rambling.

Adios netizens! May we meet again!

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...

Almost there

It seems I was mistaken. Friday's class was the last lecture! However, it's not over yet. There's the final exam. *plays ominous music* After that, this semester of Fall 2012 will be over ; ^ ;

As for class material, we've wrapped up the course with more finite state automata and regular expressions. The last tutorial really helped my understanding of the differences between NFSAs and DFSAs, and converting between DFSAs and regex.

~~~~~~~~~~~~
As promised, I'll be working on a proof here....but on second thought, I'm going to start a new post for it, since it might get long. See you in the next post!