Saturday, 29 November 2014

You Shall Be Missed

I can't believe we are finally here. The last post. It has been a great journey. Having a space to just complain about the course at times was very helpful, so thank you professor Heap for that. Maybe that's my secret to success. Who knows? I am still confused by computability; with the proof part anyway. I kind of get the concept but I will need to review course notes to fully grasp how to prove whether a function is computable or non-computable. With exams around the corner I will have to manage my time well as the exam of this course is very conveniently placed at a time where I have lots of exams before and after this one. It will be hard work, but I am up for it.

Saturday, 15 November 2014

Oh Happy Days

Oh happy days! Just a week after Big-O we get into Big-Omega and Big-Theta. I am so glad they are related. It makes this course just that much easier. Honestly as long as we follow the proof structure for everything it will be a dream come true. I have done so many proof structures now that I can't even forget how to do it no matter how hard I try. Then there is the midterm from last week. My week simply can't get any better. I got a really good score by my standards. Looking at the average I honestly thought I would've done much worse, but I was wrong. I got way above the average and that makes me feel really happy. Please let these happy days go on forever and ever.

Saturday, 8 November 2014

False Alarm

I talked about how solving Big-O problems is impossible in my last post. I take that back. It couldn't have been much easier. I was unnecessarily making it seem harder than it actually is. I agree we have only worked with polynomials, which are by far the easiest to work with to be perfectly honest. There will be harder problems in the future, but I'll tackle when it comes. Until then I'm just glad Big-O isn't as tough as it looks.

On a different note, we had our second and final midterm before the final in December. I can honestly say this midterm couldn't have been any easier. Maybe it's down to my study habits (which I have mentioned are quite poor) or maybe it's my retention skills (I usually do lots of things from memory). Whatever it is, it's clearly working considering I've found both midterms quite easy. Or maybe the professor just made it slightly too easy considering we only had 50 minutes...

Saturday, 1 November 2014

Worst Case: Failure

So we learned about worst case time complexity this week. My first thought was what would be my worst case scenario; failure to pass this course. Then we got into Big-O. My worst fears were becoming reality. Are we really expected to know this stuff? In any case at least I am glad that I am one of those people who can mess up all year round but will do well when it matters most. One thing is for sure though. If I am to pass this course I will need to know Big-O inside and out, not to mention the worst case time complexity.

Oh, and did I forget to mention sorting methods? I guess I did, and that is a bad thing considering that is also one of the many ideas in the course I don't know full well. I am doing CSC108 as well, and I know I will learn sorting methods in this course as well, so I might as well review my notes on insertion sort and god knows how many other sorts. It will help me in the long run after all...

Sunday, 26 October 2014

Algorithms

I think what we are now getting into is the main part of CSC165. And I don't get a bit of it. We started talking about insertion sort and selection sort, terms which I have never heard of. Similarly, I have also never heard of the big-Oh. Looking back, I feel like an idiot for not understanding the material we had learned previously instantly because in comparison to big-Oh, all that stuff is super easy. I guess the hour or day system won't work for this material, so hopefully by spending extra time studying, and utilizing office hours when needed, I will eventually understand the material. I can't even imagine what the tutorial quizzes will be like, because so far I have always found the quizzes challenging in the beginning before being able to work through the problem and get full marks. With only 15 minutes for the quiz, I can't afford to blank out right before the quiz as has become the norm these days with me.

Sunday, 19 October 2014

Epsilon-Delta (and the midterm)

So there was one less day of class than usual due to thanksgiving. This extra day gave me the time I needed to catch up on the week's lecture material as I was struggling to get a grasp of it. Not having taken MAT137, the epsilon delta proof was at times really challenging because I hadn't worked much with it. Therefore I searched online for the math page for MAT137 and looked at some examples in order to get a better understanding of what the epsilon delta proof is. I'll admit that I didn't become a master of the epsilon delta proof overnight, however I did learn quite a bit. With that said, however, I wouldn't consider myself comfortable with this proof, so I do hope we don't work much with it in this course. However I will spend more time trying to learn the material as I can't just wait and hope for something to go my way.

On a side note I got my midterm results back. I can honestly say I did better than I had expected, but there is still room for improvement. I lost all my marks on the last question so I will definitely need to work on being able to derive sets that fulfill certain conditions. With that said though, I'm glad what I initially thought was tough ended up being really easy for me. If I stick to spending an hour a day relearning what I learned in the lectures hopefully I can maintain, or even better, improve my marks.

Sunday, 12 October 2014

Midterms Are Here!

Ok so we had our csc165 midterm this past week. I'd say it went much better than I had expected. Yes I did screw up the very last question, but then I'm glad it's only the very last question and not the whole test. I literally spent the whole week doing anything but study. I have no idea why I did that, and I do realize in hindsight that I shouldn't do this in the future, but I just couldn't help it. I guess studying isn't my cup of tea. Despite that, however, I reckon I did pretty well. For all that I've heard about the sheer difficulty to succeed at U of T, I haven't really struggled as yet. Maybe that's why not studying really didn't affect me that much. I am looking forward to know my score on the midterm (barring the last question of course, which I know I screwed up). For those of you reading this post, I'd just like to reiterate that please don't be like me and not study for exams. It can come back to haunt you in the future. With that said, however, I'll take your leave and go back to not studying.

Saturday, 4 October 2014

The Struggle is Real (or not)

If you are to see my quiz for this week's tutorial, you will see what I mean. I thought I understood, and I probably do, but proving equivalences got the better of me on the tutorial quiz. Then on top of that, I sort of understood what we did in class but I was nowhere near as comfortable with this week's topics than I was with the topics in earlier weeks. I sort of understood how implications can be rewritten using "not" and "or" but when it came to actually using them I sort of struggled because I couldn't recall where the negation goes. Did the negation apply to the whole statement or just the antecedent? I will need to relearn this since mid terms are coming up, and I'm certainly not one of those who will just sit back and hope it all comes back to me before time is up for the midterm. As the week progressed, and I'm glad I'm able to say this, I got more and more comfortable with the topics. Especially what we did on Friday. I actually get the writing out of the proofs and using certain indentations and certain assumptions. If I get any question like that on the midterm then I am pretty sure I will be able to do well on that question. Also I'm glad that as we progress more in this course, I haven't had too many causes for concern bar the proving equivalences of course. So I'd say my prospects are good if I can just make sure I understand everything we have learned so far before the midterm. If not there is always piazza where I can ask for general help. Overall I'd say my head is still way above the water even though the water level is rising.

Saturday, 27 September 2014

The Folding Problem

So we just completed the third week. Honestly, it wasn't going all that bad until the last class for the week, where we did the folding exercise. Basically we had to fold a strip of paper such that we were able to deduce a pattern which we could use to predict a future sequence if we did a certain number of folds of the paper. The first part was easy (how many people are there that CAN'T fold), but it was the predicting of future sequences that got me. This is how I went about it.



Understand the Problem:

As per my understanding, I thought we count the number of "up" and "down" vertices after the paper is folded and use the results to predict the number (and order) of "up" and "down" vertices if we fold the paper more than 4 times, say 5 or maybe even 50.

Devise a plan:

To solve this problem, what I planned to do was create a table. In this table, I would note down the number of times I folded the strip of paper, the pattern that resulted, the number of "up" vertices, the number of "down" vertices, and the total number of vertices, both "up" and "down." After seeing the hints on the back of the sheet of paper we were given, I added one more thing to this plan. I also decided that after noting all that down I would look at the patterns column to see if any patterns from previous folds were repeated.

Carry out the plan:

Here is the table I created. In this table, u stands for up and d stands for down.

Number of Folds
Pattern
“up”
“down”
Total
1
d
0
1
1
2
u, d, d
1
2
3
3
u, u, d, d, u, d, d
3
4
7
4
u, u, d, u, u, d, d, d, u, u, d, d, u, d, d
7
8
15



Instantly I noticed that each pattern always ends with a d. Not only that, each pattern ends with the pattern combination of the pattern before it. For example, pattern 2 is u, d, d. This pattern is repeated as the end sequence of pattern 3. Pattern 3 ends with u, d, d as well.


Another thing I noticed is if instead of looking at the d as the end of the sequence, if I look at it as the middle, I can deduce more things. I saw that if I lined up the d's such that they were in the middle, then I could actually look for any symmetry that might or might not exist. Below is the reworked order with the d in the middle:

d

u d d

u u d d u d d

u u d u u d d d u u d d u d d

After writing it this way, I noticed one more thing. For each number of folds, I could line up the d's with the d's and the u's with the u's in the following way:

d
u                         d                         d
u       u       d       d       u       d       d
u u d u u d d       d       u u d d u d d

There is a clear symmetry here. At certain junctures, the u's and the d's line up. Each pattern always starts with a u and always ends with a d. Also, at each point where the letters line up, there is a u and a d on either side. Also, surprisingly, the order is always d, the letter that lined up, u. This is of course, only for the cases where the letters that line up aren't the beginning and the end.

After lining it up the way I did, I saw something that I think is the key to this problem. For everything that is to the left of the central d, if i type the same thing to the right of the d but switch d for u and u for d, then I will get the exact same patterns that are above.

Looking Back:

I found this problem a really tough one to crack. I will be honest here and say that it took me quite a while to solve. Not only did it take me until about 1 AM (I can't rest until I've solved something), I also needed help from slogs done by former CSC165 students. With that said, however, I did at least learn from this problem and well at least I have something for the blog considering how the rest of the week went without anything for me to write about. I must admit that I hadn't actually thought about letting d be in the center until someone mentioned it during class. That helped me quite a bit as it allowed me to rewrite the patterns and try to see some symmetry, if there was any. Despite the difficulty, I'm glad I did this problem as it gave my brain a good workout, which I honestly think I need seeing the fact that many of my friends have tons and tons of work while I just sit around barely doing anything (in comparison to them at least).

Friday, 19 September 2014

The First Week (and a bit of the second)

So it's the first week of class, or rather the first day, and I seriously have no idea what i'm doing. At all. Am I in the right class? THIS is what I signed up for? I guess I better review sets and set theory, because clearly that's what's going on right now.

My first week kind of went like that. I knew that the topics being talked about do make sense to the other version of me, the version that is attentive and hard working, and also willing to seek help when needed. The version of me that was present in class, however, was the complete opposite. I guess the new surroundings, a completely new country, and on top of it, a completely different lifestyle meant I was still getting acclimatized to my surroundings by the time the first day of class came along. I didn't even know what the professor was talking about when he mentioned universal and existential claims. I knew I had heard it before, but i was unable to recollect from where. Not much of a talker myself, my method of gaining knowledge involves listening attentively to the various Q & A's that happen between student and professor (assuming I don't understand it when the professor introduces the topic), and that happened to be the one thing I didn't even bother doing in the first week. In an activity where I was supposed to comment on what I believed the program would show, such as whether every element of a set S1 is also a member of a set S2, I was unable to put pen to paper. Then and there I knew that as soon as my classes for the day ended, the first, and only thing, I would do upon returning to my dorm would be to read over the topic of sets. If that wouldn't work out, then there is always the professor I can ask, and if not him, there are TA's.

As it turned out, I didn't need my plan B, as when I read through sets, everything started coming to me. Finally I was able to make sense of what a universal claim is, or what an existential claim is, or even how the usage of the word any differs to the usage of all, not all, or not any, Venn diagrams that made no sense to me during class suddenly started making sense. I honestly felt like an idiot to not have understood all this during class, as the topics we covered so far aren't all that hard for a logic oriented person like me.

Fast forward a week. I am now in my very first tutorial for this course. I agree i was barely involved in the conversation, but now anything anyone said actually made sense to me. All it took was a 2 hour review of sets. It was hard work, but if it pays off who cares? Come the end of the tutorial, I had to write a short quiz. I certainly didn't find it hard, but then that either means I knew what I was doing or it was all just an illusion and I was deluded into thinking I understood everything. I am willing to bet however, that it was most likely the former. I know now that the class will indeed become tougher, but at least I'm glad that I haven't fallen at the first hurdle...