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.