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.
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).
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
|
No comments:
Post a Comment