Friday 30 November 2012

Finally! Submitted the last assignment just couple of minutes ago. With all of its sub-i's and sub-(i+1)'s, ahh it drove me crazy. Hope, this one will not break the small tradition of getting full marks on 236 assignments :)
Just realized that the whole course was about proofs, even if we build DFSAs, designe algorithms, or write regexes, everything need to be proved. At some point, I thought that I could prove anything. Sure though, that this feeling will leave me when I start preparing for final :D
Also, want to say that I enjoyed the course, and good luck everyone on finals!

Monday 26 November 2012

I got my quiz today, which I was not be able to do correctly. So, now, after learning product construction, I tried to use it to devise a finite state machine that accepts the language of binary strings that have an even number of 1s and an odd length. Not sure if it is correct, but seems to work for me.

Sunday 25 November 2012



Hey! Two more weeks (actually less) to go! Just wanted to make a quick review of what have been done so far since my last post and what needs to be done in remaining time. So, assignment 2 and test 2 marks released, which I am very happy with. Again, thanks to TA’s and prof. Danny for assistance! Talking about test, there was some argues about how it is unfair for day sections because they had less time to prepare, which, I guess, was not relevant, because the day section’s test was actually easy enough. Not that I aced it, but not getting a full credit was only my fault.
Well, we have one more assignment and two quizzes, which I will write about later.

Sunday 4 November 2012

Heeey guys! So, tomorrow is the second(and last!:)) term test, and now I am reviewing all the past tutorial exercises and course slides in order to prepare. Actually, have no idea what to expect, I quess I'm not quite ready for the pre- and postcondition stuff that we did last lectures. Hope it would be as easy as the first termtest.
Also, the friday night was the deadline for the assignment. At first sight, it seemed difficult, and again, as always, after several hours(or days) of thinking, making notes, trying different approaches, and then going to TAs or prof, I had an idea what I am asked for and how to solve it. Again, cannot stress enough how office hours and CS Help centre are helpful!

Saturday 27 October 2012

As I said earlier I am going to post the solution for one of A1 questions. I chose the question 3, cause for me, it was more difficult than the others. Well, actually, 4th question seemed at first harder, but when I understood what exactly I needed to prove it  became not that hard. For the third question, I had a little confusions about the partition part of a proof, after going to prof's office hours(which were a looot helpful, by the way) I got how partition worked for this proof, though. So, here it is.

3. P(n): The number of 3-subsets that a set of n +3 elements has is [(n + 3)(n + 2)(n + 1)] / 6
Proof (by Mathematical Induction)
Base case: n = 0. A set of 3 elements has (3 x 2 x 1) / 6 = 1 3-subset. So holds for P(0).
Induction Step: Assume n ϵ N (generic) and that P(n) is true.
    Suppose S is a generic set with |S| = (n + 1) + 3 elements. Now there is some w ϵ S, and we have some subsets of S that do contain w, and some that do not. Say I‾ is the 3-subsets of S that do not contain w, and I+ is the 3-subsets in S that do contain w.
    Number of 3-subsets in S is number of 3-subsets in I+ plus number of 3-subsets in I‾. At the same time, number of 3-subsets in I+ is equal to the number of 2-subsets in a set with |S| - 1elements, since they match. Also, I‾ is equal to the number of 3-subsets in a set with |S| - 1elements.
    Know that a set with n + 2 elements has [(n + 2)(n + 1)] / 2 2-subsets. Using this formula and IH, find that the set with (n + 1) + 3 elements has ([((n + 1) + 2)((n + 1) + 1)] / 2) + ([(n + 3)(n + 2)(n + 1)] / 6) = [(n + 4)(n + 3)(n + 2)] / 6
            = [((n + 1) + 3)((n + 1) + 2)((n + 1) + 1)] / 6 3-subsets
            So P(n + 1) follows.
Since assumed n to be generic positive natural number, ∀ n ϵ N, P(n) ⇒ P(n + 1).
Conclude ∀ n ϵ N , P(n)
 

Friday 19 October 2012

Hi guys, it is a Friday night, and guess what I've been doing last several hours?? I have been doing my assignment on Statistics lol It seems like there is no time free of studying in UofT for me :) 
I have not been posting anything for about 10 days, because of all of the midterms, assignments, quizes that was going on last two weeks. But now, knowing my mark for the termtest, and two quizes, I actually have an idea about the course.
I start from the quizes, they actually are like free marks. I really do agree that having quiz once a week can help students to keep track of what's going on. I think that sometimes it is not enough time for them, though. But overall I think the quizes are effective and helpful in different ways.
The midterm was not as hard as I thought it would be. So, I was preparing myself for something like an assignment. Each problem seemed to be easy, but, unfortunately, I had a mistake that didn't let me me to get a full mark. From the start of a course I was wrongly assuming that our P(n) includes the Universal quantifier, which, and now I understand why, it doesn't.
The assignmnet 1 was more challenging, but the Danny's office hours was very helpful. I am actually waiting for a mark, so I can undoubtly post a solution for one the questions from assignment :)

Sunday 7 October 2012

Intro

Here comes my first blog-slog! I am actually absolutely new to the world of blogs, but I will try my best to express my thoughts about the CSC236 course. My name is Madina by the way, I am the second year computer science student.You know, there is a feeling inside when you take some course and it seems to be really hard. Time passes, and after all the finals, after your term mark is already up, you realize that it was actually not so hard, sometimes you even think it was easy. That is what almost all the time happens to me. I hope I would have the same feeling for this course, cause this would mean that I really learned something new.
First time I leaned about mathematical induction was in high school. We did the sum of the first n natural numbers kind of proofs. And it seemed really easy. I was not much interested why P(n) ⇒ P(n + 1) worked, but it always did. Now, having more complicated problems, learning that inducton has different kinds, and understanding why it works, induction is becoming more interesting!