But, I think that handwriting code on tests just make things more difficult. I understand that writing pseudo-code and plans on paper is important to organize your train of thought. However, writing code by hand often results in careless bugs and syntax errors. It's not really a good representation of real life scenarios.
Sunday, March 22, 2015
Week #10: Test 2
We just finished the last test of the semester for this course. I felt that this test had much more requirements than the first one. The main focus of this test revolved around trees and linked lists. I believe that this test was fair and it was mainly questions that we would know how to do if we had properly completed the labs.
Week #9: Linked Lists
This week we learned about a new data structure, linked lists. I felt that this data structure is much more logical than recursive procedures. Even though you have to write much more code that recursive functions, iterative functions feel much more natural. Even though I love recursion I feel that iterative functions have some more advantages.
First of all recursive functions are less efficient, not sure about this but I believe if you can write it iteratively it would be more efficient to do it that way. Secondly, I feel that iterative functions are simpler to debug and test.
I thought it was interesting to learn about linked lists. It is a mutable data structure, it can probably increase efficiency in many cases in the future..
First of all recursive functions are less efficient, not sure about this but I believe if you can write it iteratively it would be more efficient to do it that way. Secondly, I feel that iterative functions are simpler to debug and test.
I thought it was interesting to learn about linked lists. It is a mutable data structure, it can probably increase efficiency in many cases in the future..
Sunday, March 8, 2015
Week #8: Binary Trees
The next concept that we learned after trees were binary trees. Basically binary trees are the same thing as trees except that each node only has a maximum of two children. Each node is usually defined as having a left child and a right child.
Before I learned about trees I had heard about the concept of trees from a friend. I didn't really know how it worked and it sounded extremely complicated. However, now I know that trees are a type of ADT. Trees are easy to setup but sometimes I find it difficult to traverse trees with recursion.
I feel like I still need a lot more practice with recursion problems. Usually, I can get a general solution but I can't fully implement the code.
Before I learned about trees I had heard about the concept of trees from a friend. I didn't really know how it worked and it sounded extremely complicated. However, now I know that trees are a type of ADT. Trees are easy to setup but sometimes I find it difficult to traverse trees with recursion.
I feel like I still need a lot more practice with recursion problems. Usually, I can get a general solution but I can't fully implement the code.
Sunday, March 1, 2015
Week 7: Object-Oriented Programming
I'll pick my SLoG entry for week #6 to be assessed for the summary of OOP programming.
This week we continued recursion, but mainly focused on the idea of binary trees. Binary trees are data structures where each node only has a maximum of two successors. I know that trees is an important data structure that needs to be used for Assignment 2. However, I'm still a bit iffy on the concept of trees and recursion. For example, using recursion to find the longest path. I made the function work but I don't really understand how it returns the length of the longest path. How did the recursive procedure itself count the nodes? This is definitely an area that needs to be improved for problems in the future.
This week we continued recursion, but mainly focused on the idea of binary trees. Binary trees are data structures where each node only has a maximum of two successors. I know that trees is an important data structure that needs to be used for Assignment 2. However, I'm still a bit iffy on the concept of trees and recursion. For example, using recursion to find the longest path. I made the function work but I don't really understand how it returns the length of the longest path. How did the recursive procedure itself count the nodes? This is definitely an area that needs to be improved for problems in the future.
Subscribe to:
Posts (Atom)