Sunday, 31 March 2013

How to be successful in CSC165

If you have being keeping up with all the previous posts that I have made, then you might have started to notice that my posts are getting more and more mundane each passing week. Its not that I am not looking forward to anything amazing, but its that the initial flame I had for CSC165 died down and nothing has fueled that flame. Don't get me wrong, the course is still great, but I just lose interest in things in general after I spend a long time doing it, and CSC165 is no exception.

Since I really got nothing important to talk about, I will just discuss why I think I am successful in this course so far. My current projection is I will get A+ in this course, and my friends and my ability to study "correctly" were the most important factors contributing to this. If you want to do well in the assignments, friend is a MUST HAVE. Not only in this course, but also in other courses, my butt was saved more times than I could count by having friends who I could compare my answer to and discuss methods to solve problems with. 

It is sort of ironic in that I didn't plan to make any friends in this course at the start because I thought I could handle everything the professor threw at me. Before the first assignment was due, I had the opportunity to be acquainted with a fellow student in the course. Initially, we got to know each other through discussing a problem the professor urged the students to try in class (the magic of CSC165 by Prof. Heap). By some weird miracle that seemed like fate, we met again in the tutorial session in the following day, so we hit it off nicely despite it being the first tutorial. Soon afterwards, I got to know several other people in the tutorial, and ever since then we would always compare and discuss the assignments. Without them, my marks in the assignments easily could have being 20% lower than what I had gotten.

I guess the other factor, the ability to study efficiently, is not something everybody has immediate access to. Since I am a 3rd year student, I learned in the first two years what I have to do to survive in University, especially in a brutal University like U of T, where you are competing with over thousands of other brilliant minds. I think a lot of the students in computer science courses make the mistake of thinking that they can understand everything the professor teaches just by attending the lectures. This is actually a really easy mistake to make, because everything in computer science at the beginning is so straight forward, that students forget that there are thousands of different ways that you can twist those fundamental mechanics into something deep and unfamiliar. They don't realize that having an understanding in uncharted territory is just as important as understanding the basics.

I don't have a complicated studying habit for this course. If you have read my previous posts, then you would know that the only thing I do is understanding exactly what the professor was trying to teach in all of his slides, understand the purpose of each slide, and understand how I can use what I learned in those slides to apply to new problems. If you are lucky, then those slides might even contain things that are "deep and unfamiliar" might appear on the exam, and you are the dumbest person in the world if you don't recognize it and prepare for it immediately. You might be wondering, what happens if you encounter the "deep and unfamiliar" on the exam? Well, that is what your thinking brain and mad skill is for.

I guess the last important factor that I forgot to mention that is important for my success is how hard you work. The two factors I mentioned previously is something that you obtain. Once you obtain them, there is not much more you can do to those factors that will further lead you to success. But you can always work harder than how much you work now. Let's say if you spend ten hours doing an assignment, but another you from another dimension spends fifteen hours doing the same assignment, the you from the other dimension will beat you. In that sense, how much work you put on something is unlimited, and if you are willing to put in more work than your competitors, then you will naturally come out to be at the top.

Sunday, 24 March 2013

Proof Unit Result

In case you are not a student of U of T taking CSC165, I will say here that the class average for both the proof test and the assignment were REALLY HIGH. The test's average came out to be roughly 80%, which was one of the highest I have seen, and one that I definitely didn't think I would see in a course that is not about life science (because, you know, all the Asian kids go to Life Science). Furthermore, one person whom I talked to about the result of the test got 100%, so maybe the rest of my friends in CSC165 also got 100%? Likely. The average on the assignment, which was roughly 72%, was more reasonable than the test average, but it was still fairly high in my opinion because the more normal average is around the average of the first assignment, which was roughly 65%. What did I get in the end? Well, if I mention it here then I will probably make myself sound like a total arrogant jerk (like I don't sound like one already), so I will refrain from mentioning it here.

For the past week, I was reading the lecture notes so to not fall too far behind from not understanding  what was going on in the actual lectures. This method works for me, because I can understand most, if not everything, just from reading the annotated notes. Occasionally I might have a question or two, but I can always ask the professor or the TAs about them during the tutorial or the help session.

Nothing more significant happened recently.

Sunday, 17 March 2013

Latest Test Impression

Well, that last test was so much easier than I had expected! There were no tricks involved in the questions, since they were either previously shown in lectures or we had the chance to do them in the assignment. The one thing that I am glad that DID not come up on the test was the proof of the limit that was done in class, because the logic involved in some of the steps was not apparent. Before the test, I was asking around people outside the test room whether they were also confused, and many of them were. Since there was no limit proofs on the latest test, I believe that it will definitely come up on the final exam, and I caution everybody who is reading this post to actually analyze that proof if you do not already understand it.

Now that is out of the way, I can finally catch up on the lectures on Algorithm Analysis. One thing that I learned from studying for the 2nd midterm was that studying the lectures in CSC165 is not time consuming like other courses. For example, I only spent around 5 hours studying for the 2nd midterm. I think Algorithm Analysis will only be slightly longer to study for because there are more lectures involved, but otherwise the same approach I used to study for the 2nd midterm should also apply here.

From what I have seen in the lectures, Algorithm Analysis is nothing more than calculating the speed of algorithms. All you are doing is counting how many lines of codes a program has to go through based on the size of a list. I will probably spend three hours sometimes this week to catch up on all the lectures that I didn't bother to review.

Sunday, 10 March 2013

Upcoming test impression

The second midterm of the course will be next week Friday. Although I didn't pay too much attention in class for the past few weeks, I don't think I am in such a terrible position as to not do well on the test. You see, the professor posts up the annotated version of the lecture notes, and also the course provides the students with a "course note" so students can study off of them and do well on the test without even attending the lectures, theoretically. Of course it helps if you attend the lectures and pay strong attention to the contents of the lectures, but for someone like me who processes information slowly, it is better to digest the information by reading the notes slowly after class.

Even though I haven't started studying for the test, I am already confident about it, because the proof assignment did a great job familiarizing me with proof structures and proof logic. There were six proofs that I had to do and they required me to use a wide variety of proof methods. For example, I had to know how to do direct proof of universally-quantifi ed implication, indirect proof of universally-quantifi ed implication, direct proof of universally-quantifi ed predicate, proof by contradiction, and direct proof structure of the existential (this is actually five of the six methods listed in the course note). So whatever questions the professor throws at me on the test, it is highly likely that each of them will require me to use one of the methods that I am familiar with. The other great thing about the assignment was that it encouraged me to attend the help center where I learned new things about proof writing. The TAs there were great at guiding students like me towards writing a logical proof, but they were also great at pinpointing mistakes that I made in my assignment, which gave me a chance to realize some of my previous misconceptions I had about proof writing.

Although the test is soon, I don't think I will have time to study this until maybe the upcoming Wednesday. But honestly, that is probably enough time for something that I am already confident at. I just got to read up on lecture notes, and ask the professor any questions that I may come up during the course of my reading. The final step will just be doing some proof exercises. Then I will be all set.

Sunday, 3 March 2013

Proof is owning me up

I will be honest here, I had completely underestimated the difficulty of doing proofs in this course. I got less than perfect on the latest tutorial quiz that I got back. The quiz was about proof, and I still got less than perfect even though all I had to do was put down the structure of the proof without actually completing it. It was just due to a simple mistake but it was still pretty difficult to accept the reality of the situation. And on the same day, I also couldn't do the proof on another quiz. This time it wasn't the structure, but I had difficulty coming up with the logic behind the proof. Thinking back on it now, it was actually really simple, but the pressure of when I was doing the quiz in combination with my lack of proof practice stopped me from thinking flexibly.

The proof assignment that we obtained is doing relatively well compared to my quizzes. The questions on the assignment are straightforward at first, but they gradually get harder. I might not have mentioned this yet, but I did poorly on the first assignment by my standard and expectation. I am expecting this assignment to be better, however, because not only do you get less questions to do, but also because each question requires lots of effort to be put in unlike the questions from assignment 1. The more effort you put in answering a question, the more understanding you have of it, and the easier it is for you to spot any mistakes.

Right now I am stuck on trying to show that the greatest common factor of m and n, where m is bigger or equal to n, is also the greatest common factor of n and m-n. I have tried a few methods so far and none of them seems to get me what I want, or maybe simply I didn't think far enough with the methods I came up with. Regardless, thinking about the problem is challenging my mind and I enjoy doing that especially since it is a school assignment.

Thursday, 21 February 2013

Proofs, not my cup of tea

The course have finally started gearing us towards proofs. Every class after the first midterm was so far about doing different proofs using different methods. I find that these lectures are much more engaging than the lectures before we started proofs, because the professor Heap always asked us to do the proofs on our own for a minute or so and compare them to our neighbors. I honestly love this style of teaching because it let me have time to digest the material without being pressured to take notes and it also gives me an excuse for me to talk to people that I always wanted to talk to but was too shy to!

Proofs are not so much about understanding the concept as it is coming up with ideas on the spot. It is true that proofs have a predefined structure that we must follow and how fluent one can build this structure depends on how much one practices. However, it also requires the proofer to be creative, because there are a lot things out there in the world that are not obvious to prove, like for example the geometric mean is always smaller than the arithmetic mean of two numbers.

At this point though, I am confused about why we are doing proofs in this course. I mean, it is certainly mathematical, but it doesn't have as much association to symbol as what we did before. I guess I will wait and see.

Tuesday, 12 February 2013

Latest test impression

Phew! Now that was what I call crunch time. For the past week or so I had at least 4 assignments due and 2 tests to study for, and I somehow managed to deliver a good job on all of them without becoming insane. Such is the life of a university student, especially in University of Toronto, where assignments and test come from left and right, and the only time for any students to catch a breath is during the reading week when there is no class.

Anyways, the most recent test for CSC165 was definitely the most unique test I have taken since entering university. All the students were cramped into this one medium sized class and we had to do the tests right next to each other. Had it not being for the fact that everybody got different versions of the test, I might not have being able to resist the temptation of cheating by looking over someone else's paper that was only 30cm away from mine.

In regards to the content of the test, I didn't find them to be difficult at all. The first set of questions were about analyzing a set of Python definitions and determining what their functions were and matching them to their symbolic equivalents. Although most students did well on this section, I used a different approach from most people in solving them. In case you don't know what I am talking about, here is the link to the version of the test that I had:

http://www.cdf.toronto.edu/~heap/165/W13/t1-solution.pdf

Although this is a logic course, I subconsciously used a programmer's point of view when solving the problem. For example, page 3 of the test could have being done without relying on symbols at all. They have provided all the necessary codes to determine whether the functions will return True or False. What I did was that I determined what the following List Comprehension will return: 

[P1(x) for x in L]

All I knew was that it returned a list with 6 boolean values, and among them there are Trues or Falses. Then the rest was just asking yourself whether there are any Trues or Falses in this list, or if there are no Trues or no Falses. The ladder step was just simple logic, and no symbolic understanding was needed.

Danny Heap's answer that is on the test solution is probably the "correct" way to think about the question in this course, because he converted every python code into their respective symbols, and solved the problem from a symbolist's point of view. For example he converted the P1, P2, and P3 definitions into an implication, and looked at the "set" of numbers provided and determined whether they were examples or counterexamples of "claims" made by Python definitions. I mean, he converted them into FRIGGIN SYMBOLS! I found that really cool because I never realized until now that you can interpret programming codes in such a way to make connections with logic.

I found that most people who took the test had trouble dealing with Section 2 of the test. But honestly, I wouldn't blame them for it. This exact question was introduced during the lecture, and the concept was difficult to understand as it is because there were just so many predicates and implications, that most people probably couldn't help but be confused when they were analyzing the statement. I was also one of those lost sheeps. When this example was introduced in lecture I thought that it was just a complicated example of how swapping the order of the predicates can have some effect on a statement, but I was wrong. The example illustrated a much deeper concept that I didn't realize I understood until I reviewed this example carefully. Let's say that C is a set of courses at U of T, and S is a set of students at U of T, and E(s, c) means s is enrolled in course c. Let's say you make the following statement:

For all s in S, there exists a c in C, that E(s, c)

What I initially thought what this statement meant was that there is a common course c, that all students in U of T take. I think most people would probably make the same mistake as mine. The correct way to interpret this statement is to think about a python code. If you write:

for s in S:
    if E(s, c)
         return True:

then you would notice that what the code is looking at each student in S individually, and then determining whether that student is taking a course. Most beginners would make the mistake of thinking that when the statement say "For all s in S", "s" is referring to all the students simultaneously. These two interpretations are different, because one would claim that all the students in U of T are taking a course, but the other one would claim that all the students in U of T are taking a common course. This exact same concept was applied in Section 2 of the test, and if you understood this then suddenly the question seemed ridiculously easy.

There was nothing else on the test that really caught my attention. From the answers that I saw that was posted by the professor, I think I have a chance of getting 100% on this test, if, and only if, the test markers can read my answers. Well let's hope for the best.