Saturday, 4 April 2015

Week #12: Final Impressions

Looking back on this course I learned a lot of new and interesting things. I appreciated some of the visual aids Professor Heap used especially when explaining recursion. I found the visual aids very helpful in understanding exactly what recursion did and how it worked. I also enjoyed his enthusiasm for teaching this topic. Overall I had a very good experience in this class and feel like I learned a lot.

Thursday, 26 March 2015

Week #11: Compare

Since this is one of the last SLOGs of the year and we've been asked too look back and compare how we feel now about one of our old SLOGs I have decided to go back to the beginning. For our first SLOG we were asked to write about why it is important for "geeks" (computer scientists) to write. Previously I mentioned things like writing comments and that you need to effectively get your idea across, but over the time I have spent in this course I understand even more how important writing really is. I know that this feeling is mutual from looking at other students Week 11 SLOGs such as http://doganakad148.blogspot.ca/ and http://ennanarts148slog.blogspot.ca/ who also wrote about their first SLOG and how writing helped them through the course. I always find it very helpful to be able to write out exactly what my code needs to do, different things that we have learned about that may be helpful to me and how I want the code to work. As I mentioned back in my week 3 SLOG writing is still very important for commenting but I also found it very helpful when tracing my code, I could explain what was happening at each step to make it easier to see where my code was going wrong.

Friday, 20 March 2015

Week #10: Binary Search Trees

Binary search trees are interesting because they are predictable. The pattern makes it easy to know what is coming and this is the easiest way to decrease the amount of time it takes to search a tree. When searching a binary search tree if you are looking for numbers above 5 and you get to the '5' node you can disregard the data in the left subtree because you know that it will always be less than 5.When dealing with large trees it would be best if they are arranged into a binary search tree.

Friday, 13 March 2015

Week #9: Linked Lists

This week we learned about Linked Lists. When we first started learning about them I first thought about them as a tree with a single branch coming from each node. Because of this I prefer to thin of Linked lists as lists within lists because trees are also often shown as this as well. The way the information about the list is stored is also very similar to how trees store information.

Sunday, 1 March 2015

Week #7: Abstract Data Types

What Is It?
An Abstract Data Type (ADT) is a way of standardizing implementations of data types between computing languages. They are defined by how the data type stores and manipulates information. In order to use an ADT certain pre-conditions must be met in order for the ADT implementation to manipulate the input. The output from a data type will always meet the post-conditions specified in the ADT. Examples of ADT's are stacks, queues, lists, etc. They may require different code in different languages to accomplish the same thing but the manner in which they run is equivalent.

Why Is It Important?
ADT's are important because they standardize how data types are implemented between computing languages. They provide a short-hand for programmers to use between programs. This was a very important idea because this was one of the first steps towards standardizing how one writes code.

Sunday, 15 February 2015

Week #6: Stacks and Queues


This week we learned about Stacks. Stacks are a way of organizing information. When a Stack takes in new inputs it adds it to the Stack, the Stack works by piling up the inputs and the user can check if it is empty, what the top item is, and pop off the input on top (the last input entered). We also learned about Queues which are similar to Stacks in the way they store information but rather than the first item put in being the last item taken out (Stacks), for Queues the first item put in will be the first item taken out.

Friday, 6 February 2015

Week #5: Recursion

Recursion is when a function calls itself.It uses the recurring patterns within the input to shorten the amount of code needed. By using recursion it allows the user to evaluate arbitrarily large inputs with several nested inputs quickly. I found that the examples using turtle were very helpful to visualize how recursion works and what exactly it does.

Saturday, 31 January 2015

Week #4: Inheritance

Inheritance is when the functions from a super class also apply to a sub class of the super class. This is important because then a person will not have to repeat functions in each class. The super class outlines the generic layout for the specific sub classes to come. If it important to have a function in the subclasses but it will be different for each sub class the programmer can write the function definition and write and exception for the code so that it is clear that it is needed for the future sub classes.

Saturday, 24 January 2015

Week #3: Why Geeks Should Write 

Writing is a very important and overlooked tool for computer scientists . A big part of creating a program is to make it so that others can understand it. If you are able to explain what it does and how it does it through your doc string and comments then the code will be much clearer and easier for those looking at it to understand. This is especially important when working with a partner. If one person does not know what the other person's code is supposed to be doing then the work cannot be completed in a quick and efficient manner. Also in the future, as with any other person in a professional environment, we will need to be able to send emails that plainly lay out what we need or what message we are trying to get across. Writing is a basic skill that has applications in every discipline and is needed to excel in your field.