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