We wrote the second term test. It was much more code-focused than the first test, which evaluated us more on our communication skills - writing docstrings especially. Though the content of this second test was definitely harder than the first I felt the two were roughly about the same level of difficulty, though the second was slightly more challenging. Thankfully, unlike the first test, there was enough time to write this one without feeling extremely rushed to complete it. Though, to my downfall, when there were 10 minutes left and I was looking my paper over I jumped up at the chance to leave early rather than continue looking my work over, and, as always is the case, realizing as I was walking from the exam that I had made a mistake. Well, either way, I'm happy with how the test went all in all.
This week we concentrated mostly on algorithm running time and Big Oh. We're doing Big Oh in csc165 at the moment and really the concept isn't too difficult. I do find counting the steps and judging the running time a little challenging though. I have to work through it quite slowly at the moment. After this second assignment I really see how important running time is. It makes me kind of worried that running time will be a primary concern from this point onwards because it's a little hard to compute. But I guess I have to get practicing it now so that I can do it later when it matters. The puzzle-solving algorithms really varied drastically in performance between puzzle type and algorithm type (breadth first or depth first search) and sometimes small tweaks to the code could improve the running time substantially. Most of the time it was pretty logical why certain modifications would make a running time difference. Loops are always to blame! Without loops the function is always in O(1) but as soon as there are loops of some kind the code takes more and more time to run - loops that are dependent on the data in the function's arguments that is.
*Edit: my week 10 post had difficulty publishing and when I came back to it I found only a third of it saved as a draft when I thought it was published in full. So I've just added the text that somehow got deleted.
No comments:
Post a Comment