So as the course winds down to a conclusion its important to reflect on the past as well as look ahead to the future. A few weeks ago I talked a bit about queues and stacks. For those who need a refresher these are both new types of containers in python to store information which many times makes it easier to store information. A queue is a first in first out container which the first thing I put in is the first thing that is taken out while a stack is a last in first out container where the last thing I put in is the first to come out. While it didn't seem useful at the time assignment 2 made a very interesting use of queue where we used it to store configurations in a depth first search by storing all the extensions in the order in which they are in a solution tree. These new data structures opened my understanding to new forms of data and how certain types may be better for others and that lists are not always the best thing to use. This course has taught me a lot of new and interesting things and I really believe that it has helped me on the path to being a better Computer Scientist.
For the last time this semester,
AM Signing Off
CSC148 Computer Science
Wednesday, 30 March 2016
Sunday, 27 March 2016
Week 10 - Efficiency
So this week was about efficiency basically a very good way to see how programs are runned in real life. The faster the code runs the better but sometimes the fastest is not the most practical. To get over this sometimes you need to think outside the box and come up with ways to reduce the amount of steps both litteraly and code wise.
AM Signing Off
AM Signing Off
Sunday, 20 March 2016
Week 9 - Binary Search Trees
Since this week contained a midterm this post has a topic which though important will be short. This week was all about Binary Search Trees.
For those who haven't seen a binary search tree Wikipedia gives a good picture of it:

So basically a binary search tree gives numbers in order and gives a very fast way to find numbers, so if I was looking for 7 I look at the top and see 7<8 so check left then 7>3 so right 7>6 so right again and then we find the number, it takes just a few runs to get the number we were looking for. This is the power of the binary search tree. It is truly a very interesting application of the binary tree with real applications.
AM Signing Off
For those who haven't seen a binary search tree Wikipedia gives a good picture of it:
So basically a binary search tree gives numbers in order and gives a very fast way to find numbers, so if I was looking for 7 I look at the top and see 7<8 so check left then 7>3 so right 7>6 so right again and then we find the number, it takes just a few runs to get the number we were looking for. This is the power of the binary search tree. It is truly a very interesting application of the binary tree with real applications.
AM Signing Off
Saturday, 12 March 2016
Week 8
So due to some forgetting and stuff this post is a bit late. This week was an introduction to binary trees. Since we already did trees it seemed a bit repetive at parts but still very informative. Especially about the binary search tree which I see as being very useful. A more indepth post with that next week.
A.M
A.M
Wednesday, 2 March 2016
Week 7: A discussion of Recursion
This week's post is going to extend the same concept as last week's topic which as I mentioned is a huge topic in CS so it makes sense to give it the extra space it deserves.
I had done a bit of recursion in my high school classes but it was a brand new application when I saw it being used with list comprehensions. Wrapping my head around the fact that 1 line can replace 5 lines was really amazing to see. I needed a lot of practice to get around it and using it properly. By the end I was very comfortable using recursion with list comprehensions. The lab on list comprehensions also helped in solidifying my understanding though there could have been some examples of the reverse from for and counters to list comprehensions.
Trees was another big topic for recursion. They are another way to make connections in data which would be very useful for paths and graphs of methods. Trees can be organizing solution paths to maze directions where each leaf can represent a different set of turns. It seems to be an ok concept with a bit of practice both in class and in the assignment I believe that it can be conquered.
AM Signing off
I had done a bit of recursion in my high school classes but it was a brand new application when I saw it being used with list comprehensions. Wrapping my head around the fact that 1 line can replace 5 lines was really amazing to see. I needed a lot of practice to get around it and using it properly. By the end I was very comfortable using recursion with list comprehensions. The lab on list comprehensions also helped in solidifying my understanding though there could have been some examples of the reverse from for and counters to list comprehensions.
Trees was another big topic for recursion. They are another way to make connections in data which would be very useful for paths and graphs of methods. Trees can be organizing solution paths to maze directions where each leaf can represent a different set of turns. It seems to be an ok concept with a bit of practice both in class and in the assignment I believe that it can be conquered.
AM Signing off
Friday, 26 February 2016
Week 6 Post 4
This week started the interesting part of the course, Recursion. This is a topic in which even with prior experience I was a bit shaky but the prof did a good job introducing it. Even though it takes a bit of time to understand that your using a function inside its own function its really interesting. This with list comprehensions made for a very short and powerful functions to be made in class especially the drawing turtle which was my favorite code bit of the week.
A.M
A.M
Friday, 12 February 2016
Post 3 Week 5
This week was a bit more eventful then last week. This weeks learning moment: writing is worth more than code. I learned that the hard way on the midterm as I was like, 'I am writing more doc strings than actual code' but that was the point. Even if a person can make code being able to explain it in writing also counts and makes a difference.
The other topic was more on queues and stacks and how in some cases can be better than lists which I and many others just use but these containers have given me a second thought on what to use.
AM Signing off
The other topic was more on queues and stacks and how in some cases can be better than lists which I and many others just use but these containers have given me a second thought on what to use.
AM Signing off
Subscribe to:
Posts (Atom)