Monday, 10 March 2014

Week 8: Linked Lists and Assignment

    From week 7 to this week, I learned about linked lists. This could be seen as a unary tree, meaning it has a branching factor of one. Basically, a node, which contains a value,  "points" to another node. We can also view linked lists differently and call the value "head" and every else that is linked to it as "rest". Danny also showed two different pictorial representation of linked lists.

    The lab was somewhat confusing to me. I first thought I had done the labs correctly but when he TA showed his solution, it was somewhat different. To be honest, I am still very skeptical of his solution as well as mine. I should spend extra time to do the lab again and really try to understand it.

    My partner and I were very confused at the assignment. We thought there was no to make multiple classes to represent regex; we thought just making a class of tree was enough, since every such as bar, star, dot, and alphabets are just trees. However, the handout seemed to suggest otherwise, so we created classes are each of the operators and alphabet which inherited from a more general class, Regex.

No comments:

Post a Comment