P365: Day 75
P365: Day 74
P365: Day 73
P365: Day 71
P365: Day 72
Skewed Week
This has been a bad week for me. I have not been actively shooting for project 365 for a variety of reasons, including personal depression, really sucky weather (it’s been gray for like the past 10 days) and academic interferences (exams, etc). As today is Sunday, and therefore a new week, I am getting back on the train for the week and will try to take a single image for each day. For the past week I will use a slightly different rule for the images. To make sure I pick back up and don’t spend time worrying about the missed days I am going to treat the entire week’s images as candidates for each day, therefore, even though I have no representatives of Tuesday, Thursday or Friday I can fill in using things from Wednesday and Saturday. I let myself slip majorly this week and as a result I feel as though I need to push myself harder next week. I do not want to screw up the progression of this project. I enjoy it too much to do that. So, starting today I am going to attempt to challenge myself and do only non-lame photos each day.
This week’s photos will be posted later tonight.
CSC Headache
Below is a problem from an Algorithms assignment that I had to complete this evening. The instructions were to calculate the best case and worst case running times for the function. Because n could be any integer, this required a response in theta notation. Because it is a while loop, the best case is simple, n starts less than 1 and as a result, only the assignment line runs (theta is a constant (1)). I had to warp my brain into a pretzel to even begin considering how to calculate the worst case scenario. I myself could not manage to entirely figure it out, I had to consult my friend Guy, who has a much better grasp of math than I do.
First, to calculate the worst case, we have to acknowledge the best case, which is 1, then we have to add the rest of the method to it. In this case, there were five operations, so we move on to 1+ 5*z, but we have to figure out what z is. My conclusion before Guy assisted was that it had to be more than a constant (1, 2, 3, etc), but had to be less than linear (the size of n itself), which leaves a logarithmic. Only problem is I have only thought in simple logarithmics. Guy on the other hand, threw in a base 2, which suddenly made sense and helped result in the final answer, which is 1+5(log(n)/log(2)). The answer is good enough, but can be further refined to be 1+5(ceiling(log(n)/log(2)) or 1+5(ceiling(log2n)). That wasn’t so hard was it? Honestly, for me it was so mind bending that I couldn’t remember my student ID to put at the top of the document, or my instructor’s name to be able to look up his email address in my address book. I am so glad that assignment is over.
Input: x (an integer), n (an integer)
addStuff4(x, n)
{
i=n;
while (i ³ 1)
{
x=x+1;
i=floor(i/2);
return x;
}
}
XMTuner 0.3 Released
XMTuner 0.3 is now available for download.
http://xmtuner.pcfire.net/InstallXMTuner0-3.msi
The new release features my Windows service and Chris’ channel cache feature as well as his meta data code which allows things like channel logos to be included in the What’s On page.