Wednesday, December 5, 2012

Virtual Week: Endgame

Virtual Week signifies the end of our semester. This semester has been quite the learning experience. First, I would like to thank Danny. You are an amazing professor; one of the best I've had yet! Listening to you in lecture made concepts clear and really understandable. I think the greatest characteristic you possess is that you know what it is like to be a student. You try to help us do well in this course, with your very helpful and ever-shifting grading scheme. I think your generosity will help out a lot of students when it comes to their final marks.

I think doing well in this course requires us to build a strong foundation out of the fundamentals in this course. I wish I had discovered this earlier in the term. I'm sure reading the course notes on a regular basis would have given me a great deal of help. By having the fundamentals in check, I'm sure any problem is not too far a stretch for our minds.

Looking back on this SLOG, I realize I actually really like the concept. Believe it or not, I actually enjoyed Slogging every week; I didn't see it as a nuisance or a chore. Doing my SLOG on a weekly basis helped me express my emotions, from venting out my frustrations to celebrating on seemingly small achievements. Even if nobody from our course was reading, the facade of having someone out there to talk to was comforting, After reading several other SLOGs by different student, I realized that I wasn't alone in many cases.

Throughout the course, I have made great strides as a student. As some earlier readers may notice, I overcame my self-diagnosed chronic-procrastination with hard work and determination. After thinking of every course as a hurdle towards a degree, I took viewed every course as an obstacle. I wouldn't spend anytime trying to "stop and smell the roses" so to speak. However, looking back at the subject of Formal Languages and DFSAs, I actually enjoyed what we learned. I actually took what we learning as a way to be enlightened. I actually took the time to "stop and smell the roses". The sense of euphoria, which I had temporarily lost, has started to come back slowly. I am no longer a drone programmed to complete my task.

I feel confident going into examinations. I will pass this course and take my experiences with me. Hopefully I will take the optimism I gained from the last few weeks in this course, and apply to everything I do in my university career from now on. Devoting time to do more readings and finding ways to expand my thinking, will help me greatly in the near future.

Slogging has given me the impression of writing an open diary; I am able to express my emotions, as well as recapping the week that was in the course. At the same time, it was able to give me a window to my previous mindsets and goals. I am able to look back in this magical mirror, known as my SLOG, and see how I was before. I'm glad that I kept with Slogging and I think it is a really great idea. This is the last SLOG entry I will do, and surely I will miss Slogging. So for the last time everyone good luck with your exams and future endeavors, and wish me good luck as well!

Tuesday, December 4, 2012

Problem Solving Tutorial: Space Slicing

Problem:

I can divide a sheet of paper into two regions with a single straight line. With two straight lines, I can divide a sheet into four regions, and with three straight lines I can divide it into seven regions.

If n is some positive whole number, what is the maximum number of regions I can divide a sheet of paper into with n straight lines?

So, first I'll write down the information that is given and denote the number of cuts by the letter n:

Number of cuts (n): 1
Number of sections : 2

Number of cuts (n): 2
Number of sections: 4

Number of cuts (n): 3
Number of sections: 7

I started of looking for a pattern and I quickly realized there was a potential pattern when looking at the number of sections created. If you look at the number of sections created, it increases from 2 to 4 to 7 sections. When the number of cuts is equal to 2 there are 4 sections, which is 2 more sections than there was only 1 cut. Similarly, when the number of cuts is equal to 3 there are 4 sections, which is 3 more than there was only 2 cuts.

So,

(n = 2) - (n = 1)
= 4 sections - 2 sections
= 2 sections

(n = 3) - (n = 2)
= 7 sections - 4 sections
= 3 sections

As you can see, the difference in the number of sections increased by 1 (from 2 sections to 3 sections in difference).

So following this potential pattern I would get:

(n = 4) - (n = 3) = 4 sections
(n=4) - (7 sections) = 4 sections
(n=4) = 4 sections + 7 sections
(n = 4) = 11 sections

By isolating for when there are n= 4 cuts, we see that there should be 11 sections. We can confirm this pattern by visually seeing the number of cuts and the number of sections which result.

 Since the result when the number of cuts is either 1 or 2 is obvious, I'll skip to when there are three cuts and four cuts. This will be really helpful in visualizing what we are working with.

When n = 3, number of sections = 7 :


 When n = 4, number of sections = 11 :


So now it is safe to say that what I identified earlier is indeed a pattern. The updated information is now:

Number of cuts (n): 1
Number of sections : 2

Number of cuts (n): 2
Number of sections: 4

Number of cuts (n): 3
Number of sections: 7

Number of cuts (n): 4
Number of sections: 11

This problem deals with recursion. We can say that:

T(n) = { 2                          , if n = 1
           { T(n-1) + n            , if n > 1

You need to unwind this formula:
T(n) = T(n-1) + n

After unwinding, you can find the closed-form for it.  Using the "golden ratio" where α = (1 + √5)/2 and β = (1 - √5)/2 . You can prove that the closed for holds for when n = 1, and for where n > 1. By doing so you are able to prove the recurrence and therefore solve the problem I am unable to unwind the recurrence, so it seems that I am stuck here.

Friday, November 30, 2012

Week Twelve: Circles, Arrows and Assignment Three

So this week we continued our journey through the extravagant journey of dealing with DFSAs and Languages. This stuff really never ceases to amuse me. As I said before, this topic is definitely one of my favourites in the whole course. I think I really like the logic of how everything works together. Although we did work with a Regular Expression for one DFSA that turned out to be horrendous to write down. Danny even stating that the Regular Expression would probably not even fit on his slide! Hopefully there will be a question on DFSAs on the final and hopefully I can eat it right up! The morning section still has one tutorial left and we are pretty much done the course! Like the cliche says, time really does fly. I will probably make a summary SLOG entry before the deadline to share my overall experiences with this course, as well as my farewell to my SLOG. However, before I get carried away I still have to complete a problem solving tutorial to do! So look forward to at least two more SLOG entries before the deadline.

Assignment Three was due not to long ago. I seem to be on Pacific Standard Time, so do not get confused with this being posted before the midnight deadline! Anyways, there were four questions to be completed, just like for Assignment One. There were some DFSA and Regular Expression questions, which I was able to complete to some extent. If I were to say I had trouble in something, it would probably be the overall structure of the proof. I am not sure if what I did was suffice, but I did what I could. I`ll have to look over the course notes and annotated slides to get a better idea of that. The correctness proofs caught me off-guard. It felt like forever since we have done those, even though in reality it has only a couple of weeks. My excitement for the latest section made me forget that we did these types of proofs. I will admit to being rusty in the section, but I was able to persevere. This was in large part to our fabulous TA Lila. I probably would not have completed the assignment to such an extent without her help. She was amazing! Four hours of students asking questions and she handled with such ease! If you are reading this Lila, I just have to say thank you! I am not sure how well I will be graded on the assignment. Only time will tell if I put enough detail into my work.

As I said earlier in this post. I will most likely have two more SLOG entries before December 5th, so look forward to that. As always everyone, have an awesome day!
 

Saturday, November 24, 2012

Week Eleven: Creating Machines and Languages

When I heard that we were creating machines to except languages we made, I had a totally different picture in my mind. This was probably the result of watching far too many Saturday morning cartoons when I was younger! I like this topic a lot more than what we have been doing recently. For me, this topic is one of the most interesting topics in this entire course. I am very intrigued by the concept as a whole. The concept seems refreshing from all the work we've done with induction in this course. Even if there is induction to follow with this topic, I don't mind at all. I don't know why, but I feel as though this concept is easier to grasp, as well as more concrete. Some of the more mathematical and abstract ideas in the course required a lot of intuition to do. However, the concept with machines, and their accepting and non-accepting states, seems to allow me to visualize on what the problem is and what destination we need to reach to solve the problem.

Some of the regular expressions are review from what we've been doing in CSC207, while some of them are not. Although, I think we will be exploring deeper into the area of regular expressions in this course. I am still a bit shaky on the concept of some expressions like concatenations and what they exactly mean. I think the wording on what concatenation means has to be drilled into my head. For example, when Danny explains what it means in non-technical English terms, the concepts seem to flow better. For now I will read the course notes to get a better grasp on this whole new concept and prepare for the quiz accordingly. I'm really looking forward to the last few weeks of this course! Good luck to everyone in their adventures in this course and wish me luck!

Friday, November 16, 2012

Week Ten: Chapter Seven and Formal Languages

A shortened week didn't deter learning this week. The contents of this week are kind of confusing; which seems like a bad trend for me lately. I just haven't had the time to focus fully on this course. I wasn't able to go to class on Wednesday, so today's work was somewhat hard to digest. There isn't much for me to comment on this week. As per usual, I will try my hardest to do the tutorial problems for this week and reread what I missed in the annotated notes.

We got our tests back today and I wasn't surprised with my mark, or how poorly our class did in comparison to the night class. Apparently our marks will get bumped up by 3.5 marks; which is very generous of our professor! That is nearly a 20% bump, which pushed me up enough to pass the second test! It is time for me to celebrate this achievement by ending my SLOG entry early this week. So a shortened week has resulted in a shortened SLOG entry for this week. All the best!

Sunday, November 11, 2012

Week Nine: Correctness and a Break

After the second test, I was hoping we would start onto a new topic. However, it seems as if we are still in chapter two for a while! More correctness showed up on our Wednesday and Friday lectures, and to be honest, it seems a little dry. Trying to prove whether an algorithm is correct may be important, but it really doesn't do it for me. This is something I have to get used to, since it will be on the final exam! The concepts seem pretty straight forward with, very little few twists and turns. I think with more exposure to the topic, I will be able to grasp the concepts in no time! There are a few bumps along this road of algorithmic correctness, but with the "study long-weekend" around the corner, I hope to get some CSC236 done.

Speaking of the study break, I think it is a great chance to catch my breath! I will be able to get some studying for all the courses I am taking. The one negative I see about this break is that we are going to miss a tutorial, yet again. We haven't had a tutorial dealing with algorithmic correctness yet, and I was hoping to get some more practice in it. The night section still has the tutorial, so I will attempt to do the tutorial exercise which is meant for them. I also think that the Wednesday, after the break, would have been a much more suitable time for our second test. It would have mimicked the same format as the first test (which followed the Thanksgiving weekend). This way we would have been able to salvage one tutorial and there would be less people complaining about the "advantage" the night class had. Regardless, not everything can be planned as I said; only Danny knows the difficulty of setting-up material to be covered for the test. All in all, I enjoy the break and hopefully I manage to make some progress on algorithmic correctness at home. Everyone enjoy your break and wish me luck!

Wednesday, November 7, 2012

Test Two: A Disaster and a Half

So, I wrote the second term test on Monday and it was an utter disaster; it was horrific! I had thought that it would be prepared for the task, but clearly I wasn't prepared at all; I undoubtedly failed. I will limit the specifics, because there is still the night section that needs to write the test. I should start of by saying I really messed up on unwinding! There was a similar example done in class, but I choked under pressure. I was able to muster-up some what of an outline through my incomplete unwinding; I don't expect many marks from that question. The rest of the test, I had no idea how to do. I don't think there were examples like that done before, but I can be wrong. I had no idea how to approach it or even set up a base case for it! I had to settle for an "I don't know how to answer this question", because it was truly that; I had no idea where to start! I think this test required us to have a better handle on the fundamentals rather than depending on specifics to appear on this test; that is where I probably went wrong in my studying. This can be contributed to comparing to the first test, where all the questions were complete in class one way or another. I do also have specific issues about this test.

One gripe I have with this test, is the morning class had to write it on the Monday, while the evening class gets to write the test four nights later! If people from the morning section were to inform the evening section about the type of questions, or even the difficulty of the test, the evening section will be much more prepared to write the test. I understand there are limitations on the tutorial times, but I still think it could have been better carried out. Also, I did not like the time constraint the assignment had on us preparing for the test. We did have the weekend, but we also have four other courses to manage as well. If I were to solely take this class, I would have done fine with studying through the weekend, but sadly that is not the case. Another issue I had with the test was the upload of the past term test. Helpful or not, I was hoping the past test would be uploaded BEFORE the day of the test. It would have given us a better idea of how the test would have been. My final issue with test would be the questions. I wish the questions could have been shorter and maybe one or more questions on the test. Why? Well, there were a lot of topics covered up to this midterm. I spent a lot of time trying to grasp all the other concepts we had covered, but on the test we had a very limited range of questions asked to us. Either that should have been the case, or maybe Danny should have told us specific areas to cover. Since Danny told us that all of chapter three and a bit of chapter two were "fair-game" I expected the test to represent that notion. Those were the complaints I had about the test and I think I vented enough to get rid of that built up negativity.

Now don't get me wrong, I want to emphasize that I could have prepared better for this test. There are ways I could have avoided this "disaster and a half" and I'm sure I would have done much better. I definitely could have approached the test more efficiently. However, I do feel discussing in a bit more detail could have save me from all this despair. Danny, if you're reading this then I'd like to say you're still an awesome professor. I'm truly sorry if I ruined your mood, but the test ruined my day.

Saturday, November 3, 2012

Week Eight: Salvation and Uneasiness

I submitted the second assignment for the course less than a day ago, and boy, it is still hard to digest what happened. I should probably start by saying, I have seemingly broken out of the rut known as chronic procrastination! Yay! And this was a good as time as ever, since this assignment was significantly more difficult than the previous one.

The two questions sure made me work up a sweat; this is metaphorical of course. Working on the first question, I came to the understanding that the Fibonacci Function will be really relevant. After working through it, I had a lot of trouble unwinding my recurrence! It would have been more helpful if we did more examples of the unwinding with the same format as this question. After repeated attempts, I reached an epiphany! I finally was able to smoothly write out the unwinding, as well as a proof which took a very long time to complete. I used the course notes to help me complete the missing bits of my proof throughout the entire process The feeling of knowing I completed the question had be feel ecstatic. I quickly remember that the second question was still incomplete and off I went. This question was completed through the course notes and the annotated lecture slides. The final part of the question had me guessing on the tight-bound, but I managed to put something together. Instead of going for the "slam dunk" and rushing through like the first assignment, I was able to pace myself and go in for the much more effective "lay-up". I feel that pacing myself really made a difference in how well I did on this assignment.

I should mention that I do feel uneasy though. I put a lot of calculations and made sure the structure of my proofs were on par with the expectations. I lost quite a few of marks because of missing calculations, explanations, and unclear structure on both the first assignment and test. I am uneasy in that sense. Also, the second test is approaching quickly. I still have a lot doubts that I have to clear up really soon. I have a lot of uneasiness in that sense as well. I will give you all an update on how I did after the test, in an early addition of my SLOG sometime early next week. I will clear up my doubts with the Master Theorem by looking at past tutorials, reading the annotated slides, and maybe most importantly, the course notes. Wish me luck!

Sunday, October 28, 2012

Week Seven: Back to Square One

Yet another week has passed! The weather is getting colder and so I have more time to spend indoors. This week I will dedicate to this course alone! You may be asking, why all the attention? Well, it is time for me to get back to "square one" and I am not referring to the shopping mall in Mississauga. No, I mean back to the drawing board. The logic with logarithms, floors, ceilings,  and recursive functions haven't sunk in as well as I hoped it would. So I'm going back over the lectures we had since the first test. Many people say "better late then never" and I guess you would  put me in that boat. The second assignment and test are already around the corner, so what better time to than now? I feel as if I need a to build a strong foundation first, before proceeding to the big hurdles. I have gone through most of the tutorial problems and annotated lecture slides. All that is left for me is the some of the course notes, and to wrap-up some seemingly vague concepts. By going back on the material, I hope to do much better on the second assignment in comparison to the first. Hopefully our professor's shifting grading scale really helps me out in the end!

As for the second assignment, I have yet to start on it. I have read through the assignment page and don't fret, my chronic procrastination has not taken hold yet. I have a Calculus midterm the same day I have my second test for this course, so I have dedicated the weekend to Calculus. I will make sure that I do not get any more behind and fight the urges to be lazy. My next tutorial is tomorrow and I'm not happy with our section's TA. We used to have a different TA for the first week and she was much more elaborate and clear. I heard that she didn't mind if people from other sections went to her tutorials, so I will ask her if I could join her section time. Hopefully I do make a lot of progress and get back up to speed with everyone else in the course soon enough. Also with the extra time devoted to this course, I will try to make use of our professor's office hours. The assignment only contains two questions, but seem harder than the previous assignment. The more time the better, and so I have dedicated quite a bit of time for this assignment. Wish me luck!

Sunday, October 21, 2012

Week Six: Half Way There

The sixth week of the term has passed, and boy, has this term gone by quickly! We are about half way through the course! Just like last week, we have explored the run-times of more divide and conquer algorithms. This week we worked with Merge Sort. I've always liked Merge Sort; very helpful and efficient. However, finding the Big-Oh complexities of it seems to be another story. I wasn't all to clear with the algorithms we did last week, but I'm getting there. The ways in which log, ceilings, and floors interact with each other are somewhat confusing. I just need sometime to digest some of what we've done to get a full grasp on it. The Master Theorem was a bit rushed near the end of Friday's lecture, and so I hope to get some more elaborations for tomorrows tutorial and possibly the lecture on Wednesday. Needlessly to say, I couldn't make much progress with the first question in the Tutorial Exercise for this week; the Master Theorem seems like gobbledygook to say the least! My second question's incomplete solution is based off what we did in lecture with the whole "unwinding" business. I am making progress, but at a snails pace. I just have to grind it out and get as far as I can for tomorrow's quiz. The rest will be in my TA's hands.

We also got our first tests backed marked, and I was not expecting what I received. Stupid mistakes on my part cost me a few valuable marks! I lost a mark for not stating I was going to use the Induction Hypothesis; very embarrassing!  I didn't know that there would be so much focus on the structure of our proofs. I do have a gripe about the marking though. I understand that the TA was rushed in the marking, but I think there is a chance of me getting back marks if it were remarked. I got deducted three marks on a question and the only reason was one red underline under my Induction Hypothesis. I think the marking could have been a little more lenient, and I'll be sure to discuss a possible remark with our professor. I did look at the marking scheme used to mark our test, so I may be able to salvage a mark or hopefully two. Assignment two is out, and I will attempt to not repeat what I did with the first assignment. There are two questions, so I will put as much time as possible into getting a solution for them. I will try my best to fight off the urges of my chronic procrastination and do better in this second half!

Saturday, October 13, 2012

Test One: A Breath of Fresh Air

Because I rambled on in my first SLOG entry, I will try to keep this entry shorter. This past week we had our first test in CSC236. Before the test, I was really tense. After not doing so well on the first assignment, I tried my best to prepare for this test. Having the Thanksgiving long weekend was a double-sided sword. The extra day provided us an extra day to study, but at the same time we lost a valuable tutorial. The test was made up of questions we have all see before, which had me sighing a big breadth of fresh air.

The first question was from a previous tutorial, that I had looked over, and I was able to the proof quite easily. The second question was a tangent to the full binary tree questions, and I was able to complete the proof although I had some difficulty on specifics. After I completed, the first two questions I knew there would either a Well-Ordering or Structural Induction question. As I had predicted, there was a Structural Induction problem, much like the ones done in lecture. I was somewhat lost; it was the most recent type of proof we had done and we did not have tutorial time to practice what was preached in lecture. I managed to get the base case done and the basic structure, but that was the most I could do. I will wrap up my second SLOG entry by saying I was really happy with this test, and I hope that the next one will also follow a similar format.

Sunday, October 7, 2012

Assignment One: Buzzer Beater Shot

As you all know, Assignment One was due on Friday. After doing well on both quizzes, I was confident going into this assignment. I was pumped to ace this assignment and wanted to get an early start on it. However, university life is not so simple. Working on the rest of my courses, the time I had to do the assignment was slipping from my grasp. Now I'm not making excuses for myself. I admit, there were times where I had the time to start on the assignment, but I failed to capitalize on the opportunities. If you are like me, you suffer from chronic procrastination. Aware of this, I attempted to finish the assignment a day before the deadline.

The first two questions were simple enough. The first question was a tangent to the examples with the binary search trees. I followed a somewhat similar style to the other proofs, and I hope that will be suffice for the question. The second question was reminiscent of the days in CSC165. After looking through some of the examples done in lecture and tutorial, I was able to speed past the opposition. After the first two questions, I was ready to run through the rest of the assignment and score a a hundred points on this assignment.  I was going in for the slam dunk, but my overconfidence only led me to slam right into a brick wall. The third question was like reading the hieroglyphs; I could not grasp the concept at all! I was rereading the question over and over again. Needlessly to say, I had no idea how to get past this difficulty. After many trials, the question seemed familiar to me, but I didn't know where it was from. My instincts told me to fly rather than fight. The final question was easier for me to comprehend, but finding a solution was something  I did not see happening anytime soon. The momentum I had came to an abrupt stop, and I decided to work on the rest the following day.

I entered the fourth quarter; the final day for the assignment. My confidence had drastically fallen from its former glory. The Friday lecture had come and our helpful professor gave us some last minute advice. We were told to look at the first lecture for ideas. After going home, I remembered why this question was so familiar. One word started to flash in my mind: Bijection! Bijection? Bijection! This one word had the effects of a energy drink! I was ready! I had the pieces to complete the question, but they was no perfect piece. Like on laundry day, there was a sock missing. In this case, the sock was a the formula given to us. I had no idea where to use it, or even develop another formula for the n+3 problem. I left my idea in the pieces and noticed the time. The clock was ticking down, and I still had to complete the fourth question! The adrenaline was pumping through my veins. I looked at the final question and it was seemed much more difficult then the first time my eyes had lay upon it. I constantly had to look at the time, as I was paranoid of missing the deadline. My paranoia overwhelmed me! The mythical "I do better when I finish the assignment in one night" did not knock on my door! I was searching for the "light bulb moment", but it never came. I felt like I was deserted island, with no civilization in sight. The only thing I was missing was a volleyball named Wilson. Disappointed, I submitted my incomplete in MarkUs. That feeling of being so close, but running out of time was awful.

So did I learn my lesson from procrastination? Maybe. Chronic procrastination isn't a simple fix, and is a routine very hard to get out of. Hopefully, I pull up my socks for the next assignment and work on it slow and steady. There is no time for me to dwell on assignment, as the midterm is just around the corner. I just need to take everything one step at a time. I'll seek help earlier on (visiting office hours) and not leave myself so stressed in the end. Also, it would be helpful if I had maybe asked a question on Piazza. I had shot the ball in the final moments of the game to beat the buzzer beater, but I hit one off the rim. So close; but not close enough.